BackColor, ForeColor, BorderColor, AccessKey, Columns for asp:textbox (VB.net)
<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
End Sub
Sub SubmitBtn_Click(Sender As Object, E As EventArgs)
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>TextBox Controls Sample Page</TITLE>
</HEAD>
<BODY >
<form runat="server">
<Font Face="Tahoma" Size="+1">
<asp:TextBox
id="txtStandard"
Columns="25"
MaxLength="30"
Text="Single Line"
runat=server
/>
<BR><BR>
<asp:TextBox
id="txtPassword"
Columns="10"
MaxLength="30"
runat=server
TabIndex=1
Text="Password"
TextMode="Password"
/>
<BR><BR>
<asp:TextBox
id="txtMemo"
Columns="60"
Rows="5"
runat=server
Text="Multiple Lines"
TextMode="MultiLine"
Font-Name="Arial"
Font-Bold="True"
BackColor="LightYellow"
ForeColor="DarkRed"
BorderColor="DarkRed"
AccessKey="M"
/>
</Font>
</Form>
</BODY>
</HTML>
Related examples in the same category