Textbox Control program in asp.net
Write a program to demonstrate the use of textbox control in asp.net.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<html >
<head runat="server">
<title>Aryan Computers, Barshi </title>
</head>
<body>
<form id="form1" runat="server">
<p style="margin-left: 400px">
<asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="XX-Large"
Font-Underline="True" style="text-align: center" TabIndex="10"
Text="Admission Form"></asp:Label>
</p>
<p style="margin-left: 40px">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Text="First Name: "></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Width="229px">Type First Name Here</asp:TextBox>
</p>
<p style="margin-left: 40px">
<asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Last Name: "></asp:Label>
<asp:TextBox ID="TextBox2" runat="server" Width="228px">Type Last Name Here</asp:TextBox>
</p>
<p style="margin-left: 40px">
<asp:Label ID="Label3" runat="server" Font-Bold="True" Text="Address : "></asp:Label>
<asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" Width="266px">This is multiline text box </asp:TextBox>
</p>
</form>
</body>
</html>
Output:


Comments
Post a Comment