maintain the state of a hidden html control.

  • Thread starter Thread starter George
  • Start date Start date
G

George

Hi,
I have a usercontrol which handles the menu functions which is
included in the main form.My requirement is to pass a variable to the
server and maintain its state when I click an item in the menu.
I have a hidden htmlcontrol(runat="server") and i set a value to the
control thru a javascript.
Then submitted the form using "document.forms('frmMain').submit();".
I am not able to get the value of hiddenhtml control in the server.Is
there any way to get around this?

thanks
anthru
 
You can get the value of the hidden field in the server side using
request.params("<name of the hidden field>") or using request.forms("<name
of the hidden field>")
 
Back
Top