📄 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">
<link rel="shortcut icon" href="/MovieShow/Images/Real-doc.ico" type="image/x-icon" />
<title>MovieShow--用户注册</title>
<script language="javascript" type="text/javascript">
function callserver1(control)
{
if(document.getElementById("<%=txtname.ClientID %>").value=="")
alert("请输入用户名...!");
else
{
//构造将要传递给GegCallbackEventReferance的参数
var context=document.getElementById("<%=test.ClientID %>");
var arg="CheckName|"+control.value;
//显示提示信息
context.innerHTML= "<IMG SRC='/MovieShow/Images/pie.gif' />Loading...";
//调用服务器端函数
<%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData1", "context")%>;
}
}
function ReceiveServerData1(result, context)
{
context.innerHTML =result;
}
function callserver2()
{
if(document.getElementById("<%=txtname.ClientID %>").value=="")
alert("请先检验用户名...!");
else if(document.getElementById("<%=txtpwd.ClientID %>").value=="")
alert("请输入密码...!");
else if((document.getElementById("<%=txtpwd.ClientID %>").value)!=(document.getElementById("<%=txtpwdr.ClientID %>").value))
alert("两次密码输入不一样...!");
else
{
//构造将要传递给GegCallbackEventReferance的参数
var name=document.getElementById("txtname").value;
var pwd=document.getElementById("txtpwd").value;
var sex=document.getElementById("txtsex").value;
var xz=document.getElementById("txtxz").value;
var email=document.getElementById("txtemail").value;
var phone=document.getElementById("txtphone").value;
var qq=document.getElementById("txtqq").value;
var arg="register|"+name+"|"+pwd+"|"+email+"|"+xz+"|"+sex+"|"+phone+"|"+qq;
var context=document.getElementById("subtest");
context.innerHTML="<IMG SRC='/MovieShow/Images/pie.gif' />Loading...";
//调用服务器端函数
<%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData2", "context")%>;
}
}
function ReceiveServerData2(result, context)
{
context.innerHTML=result;
if(result=="OK,注册成功!")
{
window.location.reload("Default.aspx");
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div style=" width:820px; height:150px;left: 108px; top: 4px; z-index: 101; position: absolute;" >
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="820" height="150">
<param name="movie" value="/MovieShow/Navigation/Head.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="/MovieShow/Navigation/Head.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object>
</div>
<div>
<div style=" z-index: 100; background-image:url(/MovieShow/Images/Register.jpg); left: 0px; width: 1000px; position: absolute; top: 160px;
height: 454px">
<input id="Text1" readonly="readonly" style="z-index: 117; left: 312px; width: 44px;
border-top-style: none; border-right-style: none; border-left-style: none; position: absolute;
top: 64px; height: 12px; border-bottom-style: none" type="text" value="用户名:" unselectable="on" />
<input id="Text2" readonly="readonly" style="z-index: 118; left: 312px; width: 44px;
position: absolute; top: 88px; height: 12px" type="text" value="用密码:" unselectable="on" />
<input id="Text3" readonly="readonly" style="z-index: 119; left: 300px; width: 56px;
position: absolute; top: 112px; height: 12px" type="text" value="重复密码:" unselectable="on" />
<input id="Text4" readonly="readonly" style="z-index: 120; left: 324px; width: 32px;
position: absolute; top: 136px; height: 12px" type="text" value="性别:" unselectable="on" />
<input id="Text5" readonly="readonly" style="z-index: 121; left: 284px; width: 72px;
position: absolute; top: 160px; height: 12px" type="text" value="Email:" unselectable="on" />
<input id="Text6" readonly="readonly" style="z-index: 122; left: 324px; width: 32px;
position: absolute; top: 184px; height: 12px" type="text" value="星座:" unselectable="on" />
<input id="Text7" readonly="readonly" style="z-index: 123; left: 324px; width: 32px;
position: absolute; top: 208px; height: 12px" type="text" value="电话:" unselectable="on" />
<input id="Text8" readonly="readonly" style="z-index: 124; left: 324px; width: 32px;
position: absolute; top: 232px; height: 12px" type="text" value="QQ:" unselectable="on" />
<br />
<asp:Label ID="Label1" runat="server" ForeColor="Red" Style="z-index: 100; left: 304px;
position: absolute; top: 64px" Text="*" Width="1px"></asp:Label>
<asp:Label ID="Label2" runat="server" ForeColor="Red" Style="z-index: 101; left: 300px;
position: absolute; top: 92px" Text="*" Width="1px"></asp:Label>
<asp:Label ID="Label3" runat="server" ForeColor="Red" Style="z-index: 102; left: 288px;
position: absolute; top: 112px" Text="*" Width="1px"></asp:Label>
<asp:TextBox ID="txtname" runat="server" Height="12px" Style="z-index: 103; left: 368px;
position: absolute; top: 64px" Width="120px"></asp:TextBox>
<asp:TextBox ID="txtpwd" runat="server" Height="12px" Style="z-index: 104; left: 368px;
position: absolute; top: 88px" TextMode="Password" Width="120px"></asp:TextBox>
<asp:DropDownList ID="txtsex" runat="server" EnableViewState="False" Style="z-index: 105;
left: 372px; position: absolute; top: 132px">
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="txtxz" runat="server" EnableViewState="False" Style="z-index: 106;
left: 372px; position: absolute; top: 184px">
<asp:ListItem>水瓶</asp:ListItem>
<asp:ListItem>双鱼</asp:ListItem>
<asp:ListItem>白羊</asp:ListItem>
<asp:ListItem>金牛</asp:ListItem>
<asp:ListItem>双子</asp:ListItem>
<asp:ListItem>巨蟹</asp:ListItem>
<asp:ListItem>狮子</asp:ListItem>
<asp:ListItem>处女</asp:ListItem>
<asp:ListItem>天秤</asp:ListItem>
<asp:ListItem>天蝎</asp:ListItem>
<asp:ListItem>射手</asp:ListItem>
<asp:ListItem>魔羯</asp:ListItem>
</asp:DropDownList>
<asp:ImageButton ID="submit" runat="server" BorderStyle="Outset" ImageUrl="~/Images/submit.jpg"
Style="z-index: 107; left: 380px; position: absolute; top: 328px" ToolTip="提交" />
<asp:Label ID="test" Text="" runat="server" Style="z-index: 108; left: 500px; position: absolute;
top: 64px" Font-Bold="False" Font-Size="Smaller"></asp:Label>
<asp:Label ID="subtest" runat="server" Font-Bold="False" Font-Size="Smaller" Style="left: 372px;
position: relative; top: 276px; z-index: 109;"></asp:Label>
<br />
<asp:ImageButton ID="check" runat="server" BorderStyle="Outset" ImageUrl="~/Images/find.jpg"
Style="z-index: 110; left: 444px; position: absolute; top: 328px" ToolTip="检查用户名" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtemail"
ErrorMessage="注意Eamil的格式" Font-Size="Small" Style="z-index: 111; left: 500px;
position: absolute; top: 160px" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
<br />
<br />
<asp:TextBox ID="txtpwdr" runat="server" Height="12px"
Style="z-index: 112; left: 368px; position: absolute; top: 112px" TextMode="Password"
Width="120px"></asp:TextBox>
<asp:TextBox ID="txtemail" runat="server" Height="12px" Style="z-index: 113; left: 368px;
position: absolute; top: 160px" Width="120px"></asp:TextBox>
<asp:TextBox ID="txtphone" runat="server" Height="12px" Style="z-index: 114; left: 368px;
position: absolute; top: 208px" Width="120px"></asp:TextBox>
<asp:TextBox ID="txtqq" runat="server" Height="12px" Style="z-index: 115; left: 368px;
position: absolute; top: 232px" Width="120px"></asp:TextBox>
<div style=" background-image:url(/MovieShow/Images/foot1.jpg);z-index: 125; left: -14px; width: 244px; position: absolute; top: 408px;
height: 48px">
</div>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -