ASP.NET(vb.net) & HiddenField - asp:HiddenField - asp:HiddenField : Creates hidden field value.
ShotDev Focus:
- ASP.NET(vb.net) & HiddenField - asp:HiddenField
Tag Control :
<asp:HiddenField id="HiddenField1" runat="server"/>
Example
HiddenField.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object,e As EventArgs) Me.HiddenField1.Value = "www.ShotDev.Com" End Sub Sub Button1_Click(sender As Object, e As EventArgs) Me.lblText.Text = Me.HiddenField1.Value End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:HiddenField id="HiddenField1" runat="Server"></asp:HiddenField> <asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button> <br> <hr> <asp:Label id="lblText" runat="server"></asp:Label> </form> </body> </html>
Screenshot