G
Gilles T.
Hi,
I need to passing parameters in CommandArgument of the asp:ImageButton.
I don't use datagrid or datalist
Here is my code:
Private Sub ImageButtonCommandHandler( sender As Object, e As
CommandEventArgs )
Session("Id") = e.CommandArgument
end sub
<asp:ImageButton CommandName="edit" CommandArgument='<%#
objReader("RappelID") %>' ID="cmdEdit" AlternateText="Modifier/Edit"
ImageUrl="../images/edit.gif" runat="server"
onCommand="ImageButtonCommandHandler" />
e.CommandArgument is always empty
Can you help me please?
I need to passing parameters in CommandArgument of the asp:ImageButton.
I don't use datagrid or datalist
Here is my code:
Private Sub ImageButtonCommandHandler( sender As Object, e As
CommandEventArgs )
Session("Id") = e.CommandArgument
end sub
<asp:ImageButton CommandName="edit" CommandArgument='<%#
objReader("RappelID") %>' ID="cmdEdit" AlternateText="Modifier/Edit"
ImageUrl="../images/edit.gif" runat="server"
onCommand="ImageButtonCommandHandler" />
e.CommandArgument is always empty
Can you help me please?