📄 demotextbox.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DemoTextBox.aspx.cs" Inherits="BaseControl_DemoTextBox" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<table style="width: 100%">
<tr>
<td style="width: 10%; height: 69px">
<br />
</td>
<td style="width: 90%; height: 69px">
<table>
<tr>
<td style="width: 27%">
用户名:</td>
<td>
<asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 27%">
密码:
</td>
<td>
<asp:TextBox ID="txtPwd" runat="server" TextMode="Password" Width="147px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 27%">
</td>
<td>
<asp:Button ID="btnConfirm" runat="server" OnClick="btnConfirm_Click" Text="确定" Width="65px" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 2439px; height: 126px;">
<br />
</td>
<td style="width: 136px; height: 126px;">
登录信息:<br />
<asp:TextBox ID="txtMemo" runat="server" Height="84px" TextMode="MultiLine" Width="257px"></asp:TextBox><br />
注意点:TextMode属性 字符中双引号的赋值</td>
</tr>
<tr>
<td style="width: 2439px">
</td>
<td>
<fieldset style="width: 300px">
<legend class="mainTitle" style="text-align: center"><strong><span style="font-size: 14pt">
文字小游戏</span></strong></legend>在下面三个文本框立输入Apple单词即可获胜!<br />
<br />
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" OnTextChanged="TextBox_TextChanged"></asp:TextBox>
<br />
<br />
<asp:TextBox ID="TextBox2" runat="server" AutoPostBack="True"></asp:TextBox>
<br />
<br />
<asp:TextBox ID="TextBox3" runat="server" AutoPostBack="True" OnTextChanged="TextBox_TextChanged"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label1" runat="server" ForeColor="#FF8000"></asp:Label>
<br />
<br />
<strong>AutoPostBack</strong>属性
<strong>TextChanged</strong>事件</fieldset>
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -