Placing Values on a Form through the HTML Input Hidden Control (VB.net) : Input Hidden Control « HTML Control « ASP.Net






Placing Values on a Form through the HTML Input Hidden Control (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
    Span1.InnerText = "The value in the hiden " _
        & "element is: " & Hidden1.Value
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Placing Values on a Form through the HTMLInputHidden Control</TITLE>
</HEAD>
<BODY>
<form runat="server">
<input
    id="Hidden1"
    runat="server"
    type="hidden"
    value="22"
>
<BR><BR>
<span
    id="Span1"
    runat=server
/>
</form>
</BODY>
</HTML>
           
       








Related examples in the same category