This task seems deceptively simple, but I'm encountering difficulties trying to make it happen.
Within ResidentAddress.aspx, there are two user controls (AppName.ascx and NavButtons.ascx). My goal is to update a hidden input field on NavButtons.ascx with the value of "TRUE" when a textbox in AppName.ascx has focus. In the codebehind page for NavButtons, I need to be able to access this hidden input field's value.
Here's what I've got so far:
NavButtons.ascx
<input type="hidden" id="IpChangeFlag" name="ChangeFlag" runat="server" value="FALSE" />
AppName.ascx
<asp:TextBox ID="txtFirstName" runat="server" onFocus="document.getElementsByName('ChangeFlag').value='TRUE';">
NavButtons.ascx.vb
If IpChangeMade.Value.Trim.ToUpper = "TRUE" Then
MyValue = true
End If
Unfortunately, I am unable to successfully update the value of ipChangeFlad; it always remains as FALSE.