web 2.0

ASP.NET(vb.net) & HTMLInputHidden

ASP.NET(vb.net) & HTMLInputHidden - HTMLInputHidden : Creates a server-side control that maps to the <input type=hidden> HTML element and allows you to store information in a nonviewable control on the form.

ShotDev Focus:
- ASP.NET(vb.net) & HTMLInputHidden

ASP.NET(vb.net) & HTMLInputHidden

Tag Control :

<input type="hidden"
id="programmaticID"
value="contentsofhiddenfield"
runat="server" >

Example

HTMLInputHidden.aspx

<%@ Page Language="VB" %>
<script runat="server">

Sub Page_Load(sender As Object, e As EventArgs)
IF NOT Page.IsPostBack() Then
Me.Hidden1.Value = "Welcome to www.ShotDev.Com"
Me.lblText1.Text = "Version 2009"
End IF
End Sub

Sub Button1_OnClick(sender As Object, e As EventArgs)
Me.lblText1.Text = Me.Hidden1.Value
End Sub

</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
<input id="Hidden1" type="hidden" runat="server">
<input id="Button1" type="button" OnServerClick="Button1_OnClick"  value="Button" runat="server" />
<hr />
<asp:Label id="lblText1" runat="server"></asp:Label>
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) & HTMLInputHidden
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.