I want my aspx page( visual Basic) in the code behind to update a hiddenfield in a form on a master page.
I can set the field on pageA.aspx. When I go to pageB.aspx, from pageA.aspx, it reads "2013" instead of "2014" that was set by pageA.aspx.
Not sure what I am missing. Below is a snippet of master page.
<body>
<asp:Panel ID="panmaster" runat="server">
<form id="form1" runat="server">
<asp:HiddenField ID="fiscalyear" runat="server" Value="2013" />
</form>
</asp:Panel>
Below is from pageA.aspx code behind where I want to set value of hidden field in master page.
Protected Overrides Sub OnPreInit(ByVal e As System.EventArgs)
Dim mrp As MasterPage = TryCast(Me.Master, MasterPage)
Dim strfiscalyear ...
Go to the complete details ...