Changing value of hidden HTML input

U

Urs

Hi

How do I change the value of an HTML HIDDEN INPUT field from code behind (VB
or C#)?

I need this (invisible) field for some javascript to gather information once
the page has been loaded.

Thanks for any hints. Urs.
 
M

michaelkb

Pput an ID on it, and a runas="server" attribute on it. Then you can
programmatically access it as a
System.Web.UI.HtmlControls.HtmlGenericControl...
 
M

michaelkb

Kewl... that's a new 2.0 one.. wasn't sure if you were using that or
not. Cheers!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top