0

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>
2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by JorgeM
0

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>

Edited by JorgeM

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.