S
simon
I have input html control in my dataGrid.
When user click some button I would like to get it's value from codeBehind.
<ItemTemplate>
.......
<input type=hidden runat=server id="txtExists" value='<%#
Container.DataItem( "exists" ) %>'>
</ItemTemplate>
Public txtExists As System.Web.UI.HtmlControls.HtmlInputHidden
Private Sub dgdAdvert_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
dgdAdvert.ItemCommand
dim exists as string
exists=txtExists.value
.......
I alays get nothing. Where is the problem?
Thank you,
Simon
When user click some button I would like to get it's value from codeBehind.
<ItemTemplate>
.......
<input type=hidden runat=server id="txtExists" value='<%#
Container.DataItem( "exists" ) %>'>
</ItemTemplate>
Public txtExists As System.Web.UI.HtmlControls.HtmlInputHidden
Private Sub dgdAdvert_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
dgdAdvert.ItemCommand
dim exists as string
exists=txtExists.value
.......
I alays get nothing. Where is the problem?
Thank you,
Simon