📄 registe.aspx
字号:
<%@ Page language="c#" Codebehind="Registe.aspx.cs" AutoEventWireup="false" Inherits="MyChat.Registe" buffer="True" smartNavigation="True"%>
<%@ Register TagPrefix="twc" Namespace="CNBlogs.DCT.THIN" Assembly="CNBlogs.DCT" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Registe</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="MyStyle.css" type="text/css" rel="stylesheet">
<script language="javascript">
function showFace()
{
//window.open('ShowFace.aspx','','toolbar=no,height=450,width=440');
var face=window.showModalDialog("ShowFace.aspx",null,"status=no;dialogHeight=460px;dialogWidth=450px;");
if (face!=null)
{
document.Form1.imgFace.src=face;
document.Form1.hidFace.value=face;
}
}
function showDiv()
{
//alert(document.all.divFace);
document.all.divFace.style.display="block";
}
function checkNickName()
{
var lbl=document.getElementById("lblError");
lbl.innerText="正在检测,请稍候...";
var xml=new ActiveXObject("Microsoft.XMLHttp");
xml.open("post","CheckNickName.aspx?nickName=" + escape(document.Form1.txtNickName.value),"false");
xml.send("");
var result=xml.responseText;
if (result=="True")
{
lbl.innerText="Sorry,此昵称已被注册"
}
else
{
lbl.innerText="恭喜,该昵称未被使用"
}
}
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<FONT face="宋体">
<TABLE id="Table1" style="BORDER-RIGHT: #0066cc thin solid; BORDER-TOP: #0066cc thin solid; BORDER-LEFT: #0066cc thin solid; WIDTH: 600px; BORDER-BOTTOM: #0066cc thin solid; HEIGHT: 245px"
cellSpacing="0" cellPadding="0" width="600" align="center" bgColor="#ffffcc" border="0">
<TR>
<TD style="HEIGHT: 48px" vAlign="top" colSpan="2"></TD>
</TR>
<TR>
<TD style="HEIGHT: 33px" align="center" colSpan="2" height="33"><STRONG style="FONT-SIZE: 14px">用户注册</STRONG></TD>
</TR>
<TR>
<TD style="WIDTH: 153px" align="right" height="24">昵称:</TD>
<TD height="24">
<asp:TextBox id="txtNickName" runat="server" Width="160px"></asp:TextBox>
<asp:RequiredFieldValidator id="rfvNickName" runat="server" ErrorMessage="昵称必须填写 " ControlToValidate="txtNickName"
Display="Dynamic"></asp:RequiredFieldValidator><font color="blue" style="CURSOR:hand" onclick="checkNickName();">检测昵称
</font>
<br>
<asp:Label id="lblError" runat="server" ForeColor="Red"></asp:Label></TD>
</TR>
<TR>
<TD style="WIDTH: 153px" align="right" height="24">性别:</TD>
<TD height="24">
<asp:RadioButton id="radGenderM" runat="server" Text="男" GroupName="Gender" Checked="True"></asp:RadioButton>
<asp:RadioButton id="radGenderF" runat="server" Text="女" GroupName="Gender"></asp:RadioButton>
</TD>
</TR>
<TR>
<TD style="WIDTH: 153px" align="right" height="24">出生年月:</TD>
<TD height="24">
<twc:DateChooser id="dcBirthday" runat="server" ScriptFilePath="DataChooser/CNBlogs_DCT/THIN/DateChooser.htc"></twc:DateChooser>
<asp:RequiredFieldValidator id="rfvBirthday" runat="server" ErrorMessage="出生年月必须填写" ControlToValidate="dcBirthday"
Display="Dynamic"></asp:RequiredFieldValidator></TD>
</TR>
<TR>
<TD style="WIDTH: 153px" align="right" height="24">密码:</TD>
<TD height="24">
<asp:TextBox id="txtPassword" runat="server" Width="160px" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator id="rfvPassword" runat="server" ErrorMessage="密码必须填写" ControlToValidate="txtPassword"
Display="Dynamic"></asp:RequiredFieldValidator></TD>
</TR>
<TR>
<TD style="WIDTH: 153px" align="right" height="24">确认密码:</TD>
<TD height="24">
<asp:TextBox id="txtPassword1" runat="server" Width="160px" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator id="rfvPassword1" runat="server" ErrorMessage="必须重复输入密码" ControlToValidate="txtPassword1"
Display="Dynamic"></asp:RequiredFieldValidator>
<asp:CompareValidator id="cvPassWord" runat="server" ErrorMessage="密码两次输入须相等" ControlToValidate="txtPassword1"
ControlToCompare="txtPassword" Display="Dynamic"></asp:CompareValidator></TD>
</TR>
<TR>
<TD style="WIDTH: 153px; HEIGHT: 87px" vAlign="top" align="right" height="87">自我介绍:</TD>
<TD style="HEIGHT: 87px" height="88">
<asp:TextBox id="txtRemark" runat="server" Width="300px" TextMode="MultiLine" Rows="6"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 153px; HEIGHT: 31px" vAlign="top" align="right" height="31"></TD>
<TD style="HEIGHT: 31px" height="31"></TD>
</TR>
<TR>
<TD style="BORDER-TOP: #0066cc thin solid; WIDTH: 153px; BORDER-BOTTOM: #0066cc thin solid; HEIGHT: 56px; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: #c7e4ff"
vAlign="middle" align="right" bgColor="#c7e4ff">头像:<BR>
</TD>
<TD style="BORDER-TOP: #0066cc thin solid; BORDER-BOTTOM: #0066cc thin solid; HEIGHT: 56px"
borderColor="#c7e4ff" bgColor="#c7e4ff">
<asp:Image id="imgFace" onMouseOver="showDiv();" style="CURSOR:hand" onClick="divFace.style.display='none'"
runat="server" ImageUrl="Face/1.bmp"></asp:Image>
<font color="blue" style="CURSOR: hand" onclick="showFace();">更换</font><INPUT id="hidFace" type="hidden" runat="server" value="face/1.bmp">
</TD>
</TR>
<TR>
<TD align="center" colSpan="2" height="40">
<asp:Button id="btnRegister" runat="server" Text="注册"></asp:Button> <INPUT type="reset" value="清除"> <INPUT onClick="location.href='Login.aspx'" type="button" value="返回"></TD>
</TR>
</TABLE>
<DIV id="divFace" style="DISPLAY: none; Z-INDEX: 100; LEFT: 292px; POSITION: absolute; TOP: 40px"
ms_positioning="FlowLayout">
<asp:DataList id="dlst" runat="server" RepeatColumns="10" CellPadding="0" BorderColor="Black"
GridLines="Both" BorderWidth="1px" RepeatDirection="Horizontal">
<ItemStyle Width="42" Height="43" HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#C7E4FF"></ItemStyle>
<ItemTemplate>
<asp:Image style="Cursor:Hand" id=img runat="server" ImageUrl='<%# MyChat.App.FaceDir + "/" + DataBinder.Eval(Container.DataItem,"Name")%>' Width="32px" Height="32px" onMouseOver="this.style.width=40;this.style.height=40;" onMouseOut="this.style.width=32;this.style.height=32;" onClick="imgFace.src=this.src;hidFace.value=this.src;divFace.style.display='none';">
</asp:Image>
</ItemTemplate>
</asp:DataList>
</DIV>
</FONT>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -