adduser.aspx
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:7k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="adduser.aspx.cs" AutoEventWireup="false" Inherits="kuangren.adduser" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>狂人论坛-用户注册</title>
  6. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  11. <link href="skin/dvbbs/style.css" rel="stylesheet" type="text/css">
  12. <script language="jscript"> 
  13. function check() 
  14.    if(Form1.u_pass1.value == Form1.u_pass2.value) return true; 
  15.    else  
  16.    { 
  17.       alert("两次密码不相同, 重新输入!"); 
  18.       return false; 
  19.    } 
  20. </script>
  21. </HEAD>
  22. <body leftmargin="0" topmargin="0">
  23. <!--#include file="sitehead.aspx" -->
  24. <table cellSpacing="1" cellPadding="3" width="97%" align="center" bgColor="#6595d6" border="0">
  25. <tr>
  26. <td bgColor="#f0f0f0" height="25"><IMG height="9" hspace="3" src="skin/dvbbs/images/nav_position.gif" width="9" align="absMiddle">
  27. <uc1:jianinclude2 id="Jianinclude21" runat="server"></uc1:jianinclude2></UC1:JIANINCLUDE2> 
  28. → <a href="reg.aspx">论坛注册</a> → 论坛注册
  29. </td>
  30. </tr>
  31. </table>
  32. <br>
  33. <FORM id="Form1" method="post" runat="server" onsubmit="return check();">
  34. <table width="97%" style="BORDER-COLLAPSE: collapse" border="1" align="center" cellPadding="3"
  35. cellSpacing="0" bordercolor="#6595d6" bgcolor="#ffffff" class="table">
  36. <tr class="title_link">
  37. <td colSpan="2" class="title">
  38. <div align="center"><strong><font color="#ffffff">新用户注册</font></strong></div>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td width="40%">&nbsp;<STRONG>用户名:</STRONG><BR>
  43. 注册用户名长度限制为0-12字节</td>
  44. <td width="60%">&nbsp;
  45. <asp:textbox id="u_user1" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000">*
  46. <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="用户名不能为空!" ControlToValidate="u_user1"></asp:RequiredFieldValidator></FONT></td>
  47. </tr>
  48. <tr>
  49. <td width="40%">&nbsp;<STRONG>密码(至少6位):</STRONG><BR>
  50. 请输入密码,区分大小写。<BR>
  51. 请不要使用任何类似 '*'、' ' 或 HTML 字符</td>
  52. <td width="60%">&nbsp;
  53. <asp:textbox id="u_pass1" runat="server" CssClass="TextBox" TextMode="Password"></asp:textbox><FONT color="#ff0000">*
  54. <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ControlToValidate="u_pass1" ErrorMessage="密码不能为空!"></asp:RequiredFieldValidator></FONT></td>
  55. </tr>
  56. <tr>
  57. <td width="40%">&nbsp;<STRONG>重复输入密码:</STRONG></td>
  58. <td width="60%">&nbsp;
  59. <asp:textbox id="u_pass2" runat="server" CssClass="TextBox" TextMode="Password"></asp:textbox><FONT color="#ff0000">*
  60. <asp:CompareValidator id="CompareValidator1" runat="server" ControlToValidate="u_pass1" ErrorMessage="两次输入密码不同"
  61. ControlToCompare="u_pass2"></asp:CompareValidator></FONT></td>
  62. </tr>
  63. <tr>
  64. <td width="40%"><STRONG> &nbsp;<STRONG></STRONG>密码问题:</STRONG><BR>
  65. 忘记密码的提示问题</td>
  66. <td width="60%">&nbsp;
  67. <asp:textbox id="u_question" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000">*
  68. <asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ControlToValidate="u_question" ErrorMessage="密码问题不能为空!"></asp:RequiredFieldValidator>
  69. </FONT>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td width="40%">&nbsp;<STRONG>问题答案:</STRONG><BR>
  74. 忘记密码的提示问题答案,用于取回论坛密码</td>
  75. <td width="60%">&nbsp;
  76. <asp:textbox id="u_result" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000">*
  77. <asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ControlToValidate="u_result" ErrorMessage="密码答案不能为空!"></asp:RequiredFieldValidator></FONT></td>
  78. </tr>
  79. <tr>
  80. <td width="40%">&nbsp;<STRONG>性别:</STRONG><BR>
  81. 请选择您的性别</td>
  82. <td width="60%">
  83. <asp:RadioButton id="u_msn" runat="server" Text="男孩" GroupName="group" Checked="True"></asp:RadioButton>
  84. <asp:RadioButton id="u_msn1" runat="server" Text="女孩" GroupName="group"></asp:RadioButton>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td width="40%">&nbsp;<STRONG>您的Email:[请正确输入油箱地址,这样你能用到论坛所有功能]</STRONG></td>
  89. <td width="60%">&nbsp;
  90. <asp:textbox id="u_Email" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000">*
  91. <asp:RequiredFieldValidator id="RequiredFieldValidator7" runat="server" ControlToValidate="u_Email" ErrorMessage="油箱不能为空!"></asp:RequiredFieldValidator>
  92. <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="u_Email" ErrorMessage="请正确填写油箱!"
  93. ValidationExpression="w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*"></asp:RegularExpressionValidator></FONT></td>
  94. </tr>
  95. <tr>
  96. <td width="40%">&nbsp;<STRONG>您的地址:</STRONG></td>
  97. <td width="60%">&nbsp;
  98. <asp:textbox id="u_Address" runat="server" CssClass="TextBox"></asp:textbox></td>
  99. </tr>
  100. <tr>
  101. <td width="40%">&nbsp;<STRONG>您的OICQ:</STRONG></td>
  102. <td width="60%">&nbsp;
  103. <asp:textbox id="u_Oicq" runat="server" CssClass="TextBox">00000000</asp:textbox></td>
  104. </tr>
  105. <tr>
  106. <td width="40%">&nbsp;<STRONG>您的ICQ:</STRONG></td>
  107. <td width="60%">&nbsp;
  108. <asp:textbox id="u_icq" runat="server" CssClass="TextBox">00000000</asp:textbox></td>
  109. </tr>
  110. <tr>
  111. <td width="40%">&nbsp;<STRONG>您的职业:</STRONG></td>
  112. <td width="60%">&nbsp;
  113. <asp:textbox id="u_Occupation" runat="server" CssClass="TextBox"></asp:textbox></td>
  114. </tr>
  115. <tr>
  116. <td width="40%">&nbsp;<STRONG>您的主页:</STRONG></td>
  117. <td width="60%">&nbsp;
  118. <asp:textbox id="u_Homepage" runat="server" CssClass="TextBox">http://</asp:textbox></td>
  119. </tr>
  120. <tr>
  121. <td width="40%">&nbsp;
  122. <div align="right"><STRONG>个人签名 </STRONG>
  123. </div>
  124. <P align="right">您可以在帖子的后面加入您自己签名</P>
  125. </td>
  126. <td width="60%">&nbsp;
  127. <asp:textbox id="u_Signature" runat="server" TextMode="MultiLine" CssClass="TextBox" Width="288px"
  128. Height="80px"></asp:textbox></td>
  129. </tr>
  130. <tr>
  131. <td width="40%">&nbsp;
  132. <div align="right"><asp:label id="lblMessage" runat="server"></asp:label></div>
  133. </td>
  134. <td width="60%">&nbsp;&nbsp;&nbsp;&nbsp;
  135. <asp:Button id="Button1" runat="server" Text="注册"></asp:Button>
  136. &nbsp;&nbsp; <input type="reset" name="Reset" value="重填"></td>
  137. </tr>
  138. </table>
  139. </FORM>
  140. <!--#include file="sitefloor.aspx" -->
  141. </body>
  142. </HTML>