hello guys,
i know this a frequently asked question, but i cant find the solution. I hope u can help me. i try ti bind imagebutton controls into a gridview. i want to handle the data for the row where the button was clicked
my aspx file looks like
<asp:ImageButton ID="Button1"
runat="server"
ImageUrl="~/Images/deny.png"
Height="45" Width="45"
CommandName="SelectComment"
CommandArgument='<%# Container.DataItemIndex %>' />
and the vb file looks like
Protected Sub KontaktAnfragen_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles KontaktAnfragen.RowCommand
Dim rowIndex As Integer
Dim commentHiddenField As HiddenField
If e.CommandName = "SelectComment" Then
rowIndex = Integer.Parse(e.CommandName.ToString)
The problem ist that the page does not handle the click. it do nothing.it even does not jump in the RowCommand function
Best regards