Hi Guys

please help, i've places a asp:button with a code behind on a slideshow and it doesn't work; i've set my slideshow*** Autoplay:false;*** but everytime clicking my button it doesn't fire the code behind, instered it disables Autoplay to True please help

This is my vb.net Code behind the button and asp:buttone

Protected Sub btnDownload_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs)
        Dim o As DataControlFieldCell = CType(sender.parent, DataControlFieldCell)
        selectedRow = o.Parent
        Dim gvRow As GridViewRow = selectedRow
        Dim ID As String = DirectCast(gvRow.FindControl("lblID"), Label).Text
        Dim productname As String = DirectCast(gvRow.FindControl("lblProductName"), Label).Text
End Sub   


<div>
<asp:ImageButton ID="btnDownload" runat="server" alt="dessoft download" src="../img/fdespiddownload.png"
Style="width: 120px" OnClick="btnDownload_Click" OnClientClick="return ConfirmSave()" />
</div>

Try...

Protected Sub btnDownload_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles btnDownload.Click
  <<Your Code>>
End Sub


<div>
 <asp:ImageButton ID="btnDownload" runat="server" alt="dessoft download" src="../img/fdespiddownload.png"
      Style="width: 120px" OnClientClick="return ConfirmSave()" />
</div>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.