asp.net allows you to store information in a HiddenField control, which renders as a standard HTML hidden field.
Hidden fields are not rendered visible in the browser, but you can set their properties just as you would a standard control.
When a page is submitted to the server, the contents of the hidden field are sent along with the values of the other controls in the HTTP forms collection.
A hidden field can be used as a repository for any page-specific information you want to store directly in a page.
Security attention
Malicious users can easily view and modify the contents of a hidden field. Do not store any sensitive information in the hidden domain or protect the information that your application is running correctly.
The HiddenField control stores only one variable in its Value property and must be added explicitly to the page.
In order to be able to use the values of hidden fields during page processing, the corresponding page must be submitted using the HTTP POST command. If you use a hidden field, the hidden fields will not be available if the page is processed in response to a link or an HTTP get command.
The HiddenField control is used to store a value that should be persisted during each send to the server. It is rendered as a <input type= "hidden"/> element.
Typically, the state of a Web forms page is maintained by view state, session state, and cookies. However, if these methods are disabled or unavailable, you can use the HiddenField control to store the state values.
To specify the value of the HiddenField control, use the Value property.
When the value of the HiddenField control changes, the ValueChanged event is raised during each send to the server