H
hharry
Hello All,
I am trying to make use the HiddenField server control to make a
server-side variable visible to a client script.
I set the value of the HiddenField inside of the Page_Load event.
protected void Page_Load(object sender, EventArgs e)
{
this.myHiddenField.Value = myVar;
}
I am able to access this value in my client script.
If a PostBack occurs, myHiddenField.Value is updated server-side, but
the value client-side always remains the same - the initial value when
the page first loads...
I'm missing something...pointers appreciated..
Thanks in advance
I am trying to make use the HiddenField server control to make a
server-side variable visible to a client script.
I set the value of the HiddenField inside of the Page_Load event.
protected void Page_Load(object sender, EventArgs e)
{
this.myHiddenField.Value = myVar;
}
I am able to access this value in my client script.
If a PostBack occurs, myHiddenField.Value is updated server-side, but
the value client-side always remains the same - the initial value when
the page first loads...
I'm missing something...pointers appreciated..
Thanks in advance