?? register.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="register" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>無標題頁</title>
<style type="text/css">
<!--
.STYLE3 {font-size: 12px; font-family: "宋體";text-aligh:right; }
.STYLE4 {
font-family: "隸書";
font-size: 14pt;
color: #0000ff;
}
.STYLE6 {font-size: 12px}
-->
</style>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: center">
<table width="76%" style="width: 70%; text-align: center">
<tr>
<td width="94" style="width: 69px; height: 23px"> </td>
<td width="229" style="width: 129px; height: 23px; text-align: left">
<asp:Label ID="Label1" runat="server" Style="font-size: 14pt; color: red" Width="124px"></asp:Label></td>
<td style="width: 100px; height: 23px"> </td>
</tr>
<tr>
<td style="width: 69px; height: 50px;"> </td>
<td style="width: 129px; height: 50px; text-align: left;"><span class="STYLE4">填寫個人資料</span></td>
<td style="width: 100px; height: 50px;"> </td>
</tr>
<tr>
<td style="font-size: 12pt; width: 69px; font-family: 宋體; height: 26px; "><div align="right"><span class="STYLE3">
用戶名</span></div></td>
<td style="width: 129px; height: 26px; ">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
<td style="width: 100px; height: 26px">
<span class="STYLE6">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="用戶名不能為空!" Width="132px"></asp:RequiredFieldValidator>
</span></td>
</tr>
<tr>
<td style="width: 69px; height: 26px;"><div align="right"><span class="STYLE3">
密碼</span></div></td>
<td style="width: 129px; text-align: left; height: 26px;">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox></td>
<td style="width: 100px; height: 26px;"> </td>
</tr>
<tr>
<td style="width: 69px; height: 28px;"><div align="right"><span class="STYLE3">
確認密碼</span></div></td>
<td style="width: 129px; text-align: left; height: 28px;">
<asp:TextBox ID="TextBox3" runat="server" TextMode="Password"></asp:TextBox></td>
<td style="width: 100px; height: 28px;">
<span class="STYLE6">
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2"
ControlToValidate="TextBox3" ErrorMessage="兩次密碼不一致!" Width="138px"></asp:CompareValidator>
</span></td>
</tr>
<tr>
<td style="width: 69px; height: 22px; text-align: right">
<div align="right"><span class="STYLE3">
性別</span></div></td>
<td style="width: 129px; height: 22px; text-align: left">
<asp:RadioButton ID="RadioButton1" runat="server" Text="男" style="font-size: 10pt" />
<asp:RadioButton ID="RadioButton2" runat="server" Text="女" style="font-size: 10pt" /></td>
<td style="width: 100px; height: 22px"> </td>
</tr>
<tr>
<td style="width: 69px; height: 26px;">
<div align="right"><span class="STYLE3">電子郵件</span></div></td>
<td style="width: 129px; height: 26px; text-align: left">
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></td>
<td style="width: 100px; height: 26px; text-align: left;">
<span class="STYLE6">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox4"
ErrorMessage="格式錯誤!" ValidationExpression=".{1,}@.{3,}"></asp:RegularExpressionValidator>
</span></td>
</tr>
<tr>
<td style="width: 69px"> </td>
<td style="width: 129px"> </td>
<td style="width: 100px"> </td>
</tr>
<tr>
<td style="width: 69px"> </td>
<td style="width: 129px; text-align: left">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提交" />
<asp:Button ID="Button2" runat="server" Text="重填" /></td>
<td style="width: 100px"> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -