By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,482 Members | 3,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,482 IT Pros & Developers. It's quick & easy.

Changing value of hidden HTML input

P: n/a
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.

Aug 3 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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...

Urs wrote:
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.
Aug 3 '06 #2

P: n/a
Urs
Found ASP.Net HiddenField, problem solved.

"Urs" <uv****@msn.comschrieb im Newsbeitrag
news:u9**************@TK2MSFTNGP02.phx.gbl...
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.

Aug 3 '06 #3

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

Urs wrote:
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.
Aug 3 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.