Posted on: 11/25/2014 9:03:52 PM | Views : 430

I am trying to pass a value to a different page by clicking on image button. For that reason I am using hidden field . Is that a proper way of doing it.
<ItemTemplate> <asp:ImageButton ID="btnImgRecipe" runat="server" ImageUrl='<%# Eval("tumbImageLink") %>' OnClick="btnImgRecipe_Click" /> <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("title") %>'></asp:Label> <asp:HiddenField ID="hfRecipeId" runat="server" Value = '<%# Eval("recipeId") %>' /> </ItemTemplate>

Go to the complete details ...