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 ...