Dear All,
It's a small thing but may be it helps you out, In the below example you did not want to go on code behind to set the value of hidden field just set the value directly through the ASCX databind option
I consider you already bind the data in your data list, here is an example for binding the recID value in controller
<ItemTemplate>
<asp:HiddenField ID="hfReserved" runat="server" Value='<%#Eval ("recID") %>' />
<asp:ImageButton ID="imgbtnSeat" runat="server" ImageUrl="Images/idlechair.png" CommandArgument='<%#Eval ("recID") %>' CommandName="Change" />
</ItemTemplate>
Regards
Rashid Imran Bilrgrami
CEO Best visualization
http://www.bestvisualization.com
It's a small thing but may be it helps you out, In the below example you did not want to go on code behind to set the value of hidden field just set the value directly through the ASCX databind option
I consider you already bind the data in your data list, here is an example for binding the recID value in controller
<ItemTemplate>
<asp:HiddenField ID="hfReserved" runat="server" Value='<%#Eval ("recID") %>' />
<asp:ImageButton ID="imgbtnSeat" runat="server" ImageUrl="Images/idlechair.png" CommandArgument='<%#Eval ("recID") %>' CommandName="Change" />
</ItemTemplate>
Regards
Rashid Imran Bilrgrami
CEO Best visualization
http://www.bestvisualization.com
Comments
Post a Comment
Thanks for the Comments , Your review will display soon