web 2.0

ASP.NET(vb.net) & HTMLInputText

ASP.NET(vb.net) & HTMLInputText - HTMLInputText : Creates a server-side control that maps to the <input type=text> and <input type=password> HTML elements and allows you to create a single line text box to receive user input.

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

ASP.NET(vb.net) & HTMLInputText

Tag Control :

<input type=text | password
id="programmaticID"
maxlength="max#ofcharacters"
size="widthoftextbox"
value="defaulttextboxcontents"
runat="server" >

Example

HTMLInputText.aspx

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

Sub Button1_OnClick(sender As Object, e As EventArgs)
Me.lblText1.Text = Request.Form("txtInput1")
Me.lblText2.Text = Me.txtInput2.Value
End Sub

</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
Text 1 = <input type="text" name="txtInput1" value="<%=Request.Form("txtInput1")%>" />
<br />
Text 2 = <input type="text" id="txtInput2" runat="server"/>
<input id="Button1" type="button" OnServerClick="Button1_OnClick"  value="Button" runat="server" />
<hr>
<asp:Label id="lblText1" runat="server"></asp:Label>
<br>
<asp:Label id="lblText2" runat="server"></asp:Label>
</form>
</body>
</html>

Screenshot

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

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

One Response to “ASP.NET(vb.net) & HTMLInputText”

  1. 1solution…

Leave a Reply

You must be logged in to post a comment.