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






<%@ Page Language="VB" %>

<script runat="server" language="vb">    
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
       HiddenField1.Value = System.Guid.NewGuid().ToString()
    End Sub
</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