web 2.0

ASP.NET(vb.net) & TextBox - asp:TextBox

ASP.NET(vb.net) & TextBox - asp:TextBox - asp:TextBox : Creates single-line and multiline text boxes.

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

ASP.NET(vb.net) & TextBox - asp:TextBox

Tag Control :

<asp:TextBox id="TextBox1"
AutoPostBack="True|False"
Columns="characters"
MaxLength="characters"
Rows="rows"
Text="text"
TextMode="SingleLine | MultiLine | Password"
Wrap="True|False"
OnTextChanged="OnTextChangedMethod"
runat="server"/>

Example

TextBox.aspx

<%@ Page Language="VB" %>
<script runat="server">
Sub btnButton1_Click(sender As Object, e As EventArgs)
Me.lblText1.Text = Me.TextBox1.Text
End Sub

Sub TextBox2_TextChanged(sender As Object, e As EventArgs)
Me.lblText2.Text = Me.TextBox2.Text
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<br />
<asp:TextBox id="TextBox2" runat="server" OnTextChanged="TextBox2_TextChanged" AutoPostBack="true"></asp:TextBox>
<asp:Button id="btnButton1" onclick="btnButton1_Click" runat="server" Text="Button"></asp:Button>
<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) & TextBox - asp:TextBox
.
.
.
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.