📄 default.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>
</head>
<script language="javascript">
<!--
function ClientValidate(source, arguments)
{
if (arguments.Length <7)
arguments.IsValid=false;
else
arguments.IsValid=true;
}
// -->
</script>
<body>
<form id="form1" runat="server">
<div>
<table align="center" background="通用图2.bmp" bordercolordark="#ff00ff" bordercolorlight="#ff00ff"
cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="1" style="border-right: lime thin outset; border-top: lime thin outset;
border-left: lime thin outset; width: 497px; border-bottom: lime thin outset">
<asp:Label ID="Label1" runat="server" Font-Size="9pt" Text="以下内容为必填,请正确填写,否则无法完成注册"></asp:Label>
</td>
</tr>
<tr>
<td colspan="1" style="border-right: lime thin outset; border-top: lime thin outset;
border-left: lime thin outset; width: 497px; border-bottom: lime thin outset;
height: 92px; text-align: center;">
<table align="center" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2" style="width: 207px; text-align: center">
</td>
<td align="left" style="width: 117px; height: 25px; text-align: left;">
<asp:Label ID="labLoginName" runat="server" Font-Size="9pt" Text="会员登录名" Width="91px"></asp:Label></td>
<td align="left" style="width: 162px; height: 25px; text-align: left">
<asp:TextBox ID="txtLoginName" runat="server" Font-Size="9pt" Width="146px"></asp:TextBox>
</td>
<td align="left" style="width: 149px; height: 25px">
<asp:RequiredFieldValidator ID="rfvLoginName" runat="server" ControlToValidate="txtLoginName"
Font-Size="9pt" Height="1px" Width="117px">会员登录名不能为空</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="left" style="width: 117px; height: 14px; text-align: left;">
<asp:Label ID="labPwd" runat="server" Font-Size="9pt" Text="密码" Width="27px"></asp:Label></td>
<td align="left" style="width: 162px; height: 14px; text-align: left">
<asp:TextBox ID="txtPwd" runat="server" TextMode="Password" Width="143px"></asp:TextBox>
</td>
<td align="left" style="width: 149px; height: 14px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPwd"
ErrorMessage="密码不能为空!" Font-Size="9pt"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td colspan="2" rowspan="2" style="height: 29px; text-align: center">
</td>
<td rowspan="2" style="width: 162px; height: 29px; text-align: left">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="会员注册"
Width="113px" /> </td>
<td rowspan="2" style="width: 149px; height: 29px">
</td>
</tr>
</table>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPwd"
ErrorMessage="密码长度必须大于8位" Font-Size="9pt" ValidationExpression="^.{8,}$"></asp:RegularExpressionValidator></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -