⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register.aspx

📁 自己做的的一个小的邮件系统,上传上去大家一起分享一下
💻 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 id="Head1" runat="server">
    <title>小伟邮箱系统--注册页面</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
   function ErrorMessage(Id,Message)
{
    var ErrorMessages= document.getElementById(Id);
    ErrorMessages.innerText=Message;
    ErrorMessages.style.color="red";    
}
   function chk(Id)
   {
     if(document.form1.txtUserName.value=="")
     {
        ErrorMessage(Id,"用户名不能为空!")
       
       document.form1.txtUserName.focus();
       return false;
     }
     if (document.form1.txtPwd.value=="")
     {
       alert("用户密码不能为空!");
       document.form1.txtPwd.focus();
       return false;
     }
     if (document.form1.txtRealName.value=="")
     {
        alert("用户真实名字不能为空!");
        document.form1.txtRealName.focus();
        return false;
     }
     if(document.form1.txtPhone.value=="")
     {
       alert("用户手机不能为空!");
       document.form1.txtPhone.focus();
       return false;
     }
     if(document.form1.txtBirthday.value=="")
     {
       alert("用户生日不能为空!");
       document.form1.txtBirthday.focus();
       return false;
     }
     if(document.form1.txtEmail.value=="")
     {
        alert("用户Email地址不能为空!");
        document.form1.txtEmail.focus();
        return false;
     }
     return true;
   }
</script>  
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
           <!-- 头部的定义 -->
           <div id="top1" style="background-image: url(images/top_bg.jpg)">
                   <div id="top_left">
                       <img src="images/logo.jpg" /></div>
                    <div id="top_right">
                        <span class="daohang" style="color: white"><a class="daohang2" href="#">设为首页</a> | <a
                            class="daohang2" href="#">188财富邮</a> | <a class="daohang2" href="#">163邮箱</a> |
                            <a class="daohang2" href="#">帮助</a> | <a class="daohang2" href="#">网易首页</a></span></div>
                
           </div>
           
           <!-- 中间的定义哈  -->
           <div id="middle">
                  <div id="middle_01" style="width: 179px; color: #006600">
                      <img src="images/andy.jpg" /><br />
                      距北京奥运开幕还有<strong><span style="font-size: 13pt; color: #ff6600; font-family: Verdana">000</span></strong>天<br />
                      <br />
                      还没有网易andy免费邮?<br />
                      <br />
                      <asp:ImageButton ID="imgBtnRegister" runat="server" ImageUrl="~/images/register.jpg"
                          PostBackUrl="~/reg/register.aspx" /><br />
                      <br />
                      在线答疑<br />
                      <br />
                      网易Andy特别推荐<br />
                      <br />
                      <img src="images/andy_001.jpg" />自写短信
                      <img src="images/andy_002.jpg" />
                      贺卡<br />
                      <br />
                       </div>
                       <div id="middle_02">
                           <img src="images/fen.jpg" />
                       </div>
                           
                           <span class="middle_right">
                               <br />
                               &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; 注册信息填写:<br />
                           </span>  
                           <span class="middle_right1"><span style="color: #ff0000">(所有项为必填*)</span>&nbsp;<br />
                               
&nbsp; &nbsp; &nbsp; &nbsp;用户名:<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                                   @andy.com<asp:Label ID="Label1" runat="server"></asp:Label><br />
                                   <br />
                                   &nbsp; &nbsp; &nbsp; &nbsp;密 &nbsp;&nbsp; 码:<asp:TextBox ID="txtPwd" runat="server"></asp:TextBox>&nbsp;
                                   忘了密码?<br />
                               <br />
                               &nbsp; &nbsp; &nbsp; &nbsp;真实姓名:<asp:TextBox ID="txtRealName" runat="server"></asp:TextBox><br />
                               <br />
                               &nbsp; &nbsp; &nbsp; &nbsp;手机号码:<asp:TextBox ID="txtPhone" runat="server"></asp:TextBox><br />
                               <br />
                              &nbsp; &nbsp; &nbsp; &nbsp;生 &nbsp;&nbsp; 日:
                               <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox>
                               &nbsp;<br />
                               <br />
                              &nbsp; &nbsp; &nbsp; &nbsp;Email:<asp:TextBox ID="txtEmail" runat="server"></asp:TextBox><br />
                                   <br />
                               <br />
                                   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                   <asp:ImageButton ID="imgBtnZhuce" runat="server" ImageUrl="~/images/chuangjian.jpg" OnClientClick="return chk('Label1')" OnClick="imgBtnZhuce_Click" />
                               &nbsp; &nbsp; <span class="red"></span>
                               &nbsp;&nbsp;
                               <br />
                                   <br />
                                   &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;<br />
                           </span>
        &nbsp;
     </DIV>
    
      <div id="middle_a" style="background-image: url(images/dongtai.jpg); background-repeat: no-repeat;">
      <span class="ddd">&nbsp;找不到好工作快来睿智慧海... &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          &nbsp; &nbsp; &nbsp; 天道酬勤</span></div>
     
     </div>
     <div id="footer" style="background-image: url(images/footer_bg.jpg); background-repeat: repeat-x">
           <span class="foot" >&nbsp;关于网易 网络营销 财富邮 随身邮 邮箱伴侣 精美贺卡 举报违法信息 客户服务<br />
               &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
               &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
               &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
               &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
               &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 相关法律 | 网易公司版权所有 © 2008-9999</span></div>
     </FORM>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -