HiddenField control
The HiddenField control provides you with a way to store information in the page without displaying it. For example, you might store a user-preference setting in a HiddenField control. For details about writing code for HiddenField controls, see HiddenField.
Drag the HiddenField control from the Toolbox panel to your page.
Note: |
|---|
Because there is no visual representation of a HiddenField control, you won't be able to see it in Design view, but you can see the control in Code view. |
To put information into a HiddenField control, you set its Value property to the value you want to store between postbacks.
As with any other web server control, the information in a HiddenField control is available during postback. The information is not persisted outside the page.
Note: