adduser.aspx
资源名称:论坛源码.rar [点击查看]
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:7k
源码类别:
.net编程
开发平台:
C#
- <%@ Page language="c#" Codebehind="adduser.aspx.cs" AutoEventWireup="false" Inherits="kuangren.adduser" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>狂人论坛-用户注册</title>
- <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
- <meta content="C#" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="skin/dvbbs/style.css" rel="stylesheet" type="text/css">
- <script language="jscript">
- function check()
- {
- if(Form1.u_pass1.value == Form1.u_pass2.value) return true;
- else
- {
- alert("两次密码不相同, 重新输入!");
- return false;
- }
- }
- </script>
- </HEAD>
- <body leftmargin="0" topmargin="0">
- <!--#include file="sitehead.aspx" -->
- <table cellSpacing="1" cellPadding="3" width="97%" align="center" bgColor="#6595d6" border="0">
- <tr>
- <td bgColor="#f0f0f0" height="25"><IMG height="9" hspace="3" src="skin/dvbbs/images/nav_position.gif" width="9" align="absMiddle">
- <uc1:jianinclude2 id="Jianinclude21" runat="server"></uc1:jianinclude2></UC1:JIANINCLUDE2>
- → <a href="reg.aspx">论坛注册</a> → 论坛注册
- </td>
- </tr>
- </table>
- <br>
- <FORM id="Form1" method="post" runat="server" onsubmit="return check();">
- <table width="97%" style="BORDER-COLLAPSE: collapse" border="1" align="center" cellPadding="3"
- cellSpacing="0" bordercolor="#6595d6" bgcolor="#ffffff" class="table">
- <tr class="title_link">
- <td colSpan="2" class="title">
- <div align="center"><strong><font color="#ffffff">新用户注册</font></strong></div>
- </td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>用户名:</STRONG><BR>
- 注册用户名长度限制为0-12字节</td>
- <td width="60%">
- <asp:textbox id="u_user1" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000">*
- <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="用户名不能为空!" ControlToValidate="u_user1"></asp:RequiredFieldValidator></FONT></td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>密码(至少6位):</STRONG><BR>
- 请输入密码,区分大小写。<BR>
- 请不要使用任何类似 '*'、' ' 或 HTML 字符</td>
- <td width="60%">
- <asp:textbox id="u_pass1" runat="server" CssClass="TextBox" TextMode="Password"></asp:textbox><FONT color="#ff0000">*
- <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ControlToValidate="u_pass1" ErrorMessage="密码不能为空!"></asp:RequiredFieldValidator></FONT></td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>重复输入密码:</STRONG></td>
- <td width="60%">
- <asp:textbox id="u_pass2" runat="server" CssClass="TextBox" TextMode="Password"></asp:textbox><FONT color="#ff0000">*
- <asp:CompareValidator id="CompareValidator1" runat="server" ControlToValidate="u_pass1" ErrorMessage="两次输入密码不同"
- ControlToCompare="u_pass2"></asp:CompareValidator></FONT></td>
- </tr>
- <tr>
- <td width="40%"><STRONG> <STRONG></STRONG>密码问题:</STRONG><BR>
- 忘记密码的提示问题</td>
- <td width="60%">
- <asp:textbox id="u_question" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000">*
- <asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ControlToValidate="u_question" ErrorMessage="密码问题不能为空!"></asp:RequiredFieldValidator>
- </FONT>
- </td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>问题答案:</STRONG><BR>
- 忘记密码的提示问题答案,用于取回论坛密码</td>
- <td width="60%">
- <asp:textbox id="u_result" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000">*
- <asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ControlToValidate="u_result" ErrorMessage="密码答案不能为空!"></asp:RequiredFieldValidator></FONT></td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>性别:</STRONG><BR>
- 请选择您的性别</td>
- <td width="60%">
- <asp:RadioButton id="u_msn" runat="server" Text="男孩" GroupName="group" Checked="True"></asp:RadioButton>
- <asp:RadioButton id="u_msn1" runat="server" Text="女孩" GroupName="group"></asp:RadioButton>
- </td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>您的Email:[请正确输入油箱地址,这样你能用到论坛所有功能]</STRONG></td>
- <td width="60%">
- <asp:textbox id="u_Email" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000">*
- <asp:RequiredFieldValidator id="RequiredFieldValidator7" runat="server" ControlToValidate="u_Email" ErrorMessage="油箱不能为空!"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="u_Email" ErrorMessage="请正确填写油箱!"
- ValidationExpression="w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*"></asp:RegularExpressionValidator></FONT></td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>您的地址:</STRONG></td>
- <td width="60%">
- <asp:textbox id="u_Address" runat="server" CssClass="TextBox"></asp:textbox></td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>您的OICQ:</STRONG></td>
- <td width="60%">
- <asp:textbox id="u_Oicq" runat="server" CssClass="TextBox">00000000</asp:textbox></td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>您的ICQ:</STRONG></td>
- <td width="60%">
- <asp:textbox id="u_icq" runat="server" CssClass="TextBox">00000000</asp:textbox></td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>您的职业:</STRONG></td>
- <td width="60%">
- <asp:textbox id="u_Occupation" runat="server" CssClass="TextBox"></asp:textbox></td>
- </tr>
- <tr>
- <td width="40%"> <STRONG>您的主页:</STRONG></td>
- <td width="60%">
- <asp:textbox id="u_Homepage" runat="server" CssClass="TextBox">http://</asp:textbox></td>
- </tr>
- <tr>
- <td width="40%">
- <div align="right"><STRONG>个人签名 </STRONG>
- </div>
- <P align="right">您可以在帖子的后面加入您自己签名</P>
- </td>
- <td width="60%">
- <asp:textbox id="u_Signature" runat="server" TextMode="MultiLine" CssClass="TextBox" Width="288px"
- Height="80px"></asp:textbox></td>
- </tr>
- <tr>
- <td width="40%">
- <div align="right"><asp:label id="lblMessage" runat="server"></asp:label></div>
- </td>
- <td width="60%">
- <asp:Button id="Button1" runat="server" Text="注册"></asp:Button>
- <input type="reset" name="Reset" value="重填"></td>
- </tr>
- </table>
- </FORM>
- <!--#include file="sitefloor.aspx" -->
- </body>
- </HTML>