Thanks for the response.
You mean there is no built-in hidden server control?
That seems like a pretty striking oversight. Suppose I have some value that
I want to use in a javascript calculation but doesn't need to be displayed,
so I want to put it in a hidden input field. How would I set this from the
code-behind page?
I guess I can generate the HTML for the <input> tag each time but then I
lose the state management that the other server-side components have.
Just seems like a simple thing Microsoft should have included. They have all
the other input types, why not have a hidden one?
Thanks,
Dan
"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn*****************@127.0.0.1...
"Dan" <dh******@somewhere.com> wrote in
news:uO**************@TK2MSFTNGP12.phx.gbl: Is there a way to access and set a hidden input types in the code-behind
page for ASP.Net?
You can edit the HTML directly to enter them. But you want to modify them
directly in server side code too?
Check the WebForm properties for options. That failing, a really simple
custom control that does this would only be a few lines if you dont need
design time support.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004