Working with the HiddenField server control (C#) : HiddenField « ASP.net Controls « ASP.NET Tutorial






<%@ Page Language="C#"%>

<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        HiddenField1.Value = System.Guid.NewGuid().ToString();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>HiddenField Server Control</title>
</head>
<body>
    <form id="form1" runat="server">
       <asp:HiddenField ID="HiddenField1" Runat="Server" />
    </form>
</body>
</html>








3.18.HiddenField
3.18.1.Working with the HiddenField server control (C#)
3.18.2.Working with the HiddenField server control (VB)
3.18.3.Hidden fields and ViewState (C#)
3.18.4.Hidden fields and ViewState (VB)
3.18.5.Use hidden field to pass value