asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Controls You Can Use on Web Forms > ASP.NET HTML WebControls

ASP.NET HTML Controls

  Section Index


HtmlInputHidden Server Control

Allows programmatic access to the HTML <input type=hidden> element on the server.

The HtmlInputHidden control <input type=hidden...runat="server"> is used to create a control that is not rendered but whose value is submitted with a form.

The hidden input type presents no control to the user. It simply provides a mechanism for storing and delivering information to the receiving program without user interaction.

This technique is commonly used to persist session-dependent information without using cookies or session state. The Web Forms framework uses this feature of HTML to automatically store and restore the view state of ASP.NET server controls across round trips to the server.

The following sample illustrates using the HtmlInputHidden control.

HtmlInputHidden Control Example
Run Sample | View Source
See Also

HtmlInputHidden Control Syntax   HiddenField Web Server Control   HTML INPUT Element

More ...
Back to top


© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note