asp.net.ph

Skip Navigation Links

HiddenField Control Syntax

ASP.NET Syntax   ASP.NET Syntax for Web Controls


Creates a hidden field that is used to store a non-displayed value.

Declarative Syntax

For information on the individual members of this class, see HiddenField in the class library.

Remarks

The HiddenField control renders as an <input type = "hidden"> element that can store a value that needs to persist across posts to the server.

Syntax Example

The following example demonstrates how to use the HiddenField control to store a hidden value on a rendered Web page.

<asp:hiddenfield id="HiddenField1" runat="server" value="1" />
See Also

HiddenField Class   HiddenField Web Server Control



© 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