document.getElementById("<%= tbHidGenSec.ClientID %>").text = varGenSecMan;
When I copied and pasted from Visual Studio the delimited section was lost. The above is the actual string. I can also view the value within the function after I set it but it is either lost on postback or the value is never actually assigned to the control.
alert(document.getElementById("<%= tbHidGenSec.ClientID %>").text); //value of 2 as assigned in function
Neither code behind or page show new value after postback
Dim strVar As String = tbHidGenSec.Text