您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->酒店管理系统(三层开发)源码>>WebSite_hotel/UserRegist.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:酒店管理系统(三层开发)源码
当前文件:文件类型 ThreeLayerHotel/WebSite_hotel/UserRegist.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" 2CodeFile="UserRegist.aspx.cs" 3 Inherits="UserRegist" %> 4 5<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 6 Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %> 7 8<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 9 10<html xmlns="http://www.w3.org/1999/xhtml" > 11<head runat="server"> 12 <title>无标题页</title> 13 <style type="text/css"> 14 .style1 15 { 16 width: 100%; 17 } 18 .style2 19 { 20 width: 121px; 21 height: 31px; 22 } 23 .style3 24 { 25 width: 150px; 26 height: 31px; 27 } 28 .style4 29 { 30 height: 25px; 31 width: 85px; 32 } 33 .style6 34 { 35 height: 21px; 36 width: 85px; 37 } 38 .style7 39 { 40 width: 85px; 41 height: 31px; 42 } 43 .style8 44 { 45 width: 121px; 46 height: 21px; 47 } 48 .style9 49 { 50 width: 150px; 51 height: 21px; 52 } 53 .style10 54 { 55 height: 25px; 56 width: 121px; 57 } 58 .style11 59 { 60 width: 121px; 61 } 62 .style12 63 { 64 width: 85px; 65 } 66 </style> 67</head> 68 69<body background="Image2/beijing.png"> 70 <form id="form1" runat="server"> 71 <div> 72 <div style="text-align: center"> 73 <br /> 74 <asp:ScriptManager ID="ScriptManager1" runat="server"> 75 </asp:ScriptManager> 76 <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 77 <ContentTemplate> 78 <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"> 79 <asp:View ID="View1" runat="server"> 80 &nbsp;&nbsp;<br /> 81 <table style="width: 444px; height: 219px"> 82 <tr> 83 <td colspan="2" style="height: 25px" align="center"> 84 用户注册</td> 85 <td align="center" style="height: 25px"> 86 &nbsp;</td> 87 </tr> 88 <tr> 89 <td align="right" class="style10"> 90 用户名:</td> 91 <td align="left" class="style4"> 92 <asp:TextBox ID="txtloginid" runat="server" Width="153px" AutoPostBack="True" 93 ontextchanged="txtloginid_TextChanged"></asp:TextBox> 94 </td> 95 <td align="left" style="width: 150px; height: 25px"> 96 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 97 ControlToValidate="txtloginid" ErrorMessage="*" 98 Font-Size="Small"></asp:RequiredFieldValidator> 99 <asp:Label ID="lblmag" runat="server" Font-Size="Small" ForeColor="Red"></asp:Label> 100 </td> 101 </tr> 102 <tr> 103 <td align="right" class="style11"> 104&nbsp; &nbsp; 码:</td> 105 <td align="left" class="style12"> 106 <asp:TextBox ID="txtloginpwd" runat="server" TextMode="Password" Width="153px"></asp:TextBox> 107 </td> 108 <td align="left" style="width: 150px"> 109 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 110 ControlToValidate="txtloginpwd" ErrorMessage="*" 111 Font-Size="Small"></asp:RequiredFieldValidator> 112 </td> 113 </tr> 114 <tr> 115 <td align="right" class="style11"> 116 确认密码:</td> 117 <td align="left" class="style12"> 118 <asp:TextBox ID="txtpwd1" runat="server" Width="153px" TextMode="Password"></asp:TextBox> 119 </td> 120 <td align="left" style="width: 150px"> 121 <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 122 ControlToValidate="txtpwd1" Display="Dynamic" ErrorMessage="*" 123 Font-Size="Small"></asp:RequiredFieldValidator> 124 <asp:CompareValidator ID="CompareValidator1" runat="server" 125 ControlToCompare="txtloginpwd" ControlToValidate="txtpwd1" ErrorMessage="密码不一致" 126 Font-Size="Small"></asp:CompareValidator> 127 </td> 128 </tr> 129 <tr> 130 <td align="right" class="style8"> 131 真是姓名:</td> 132 <td align="left" class="style6"> 133 <asp:TextBox ID="txtname" runat="server" Width="153px"></asp:TextBox> 134 </td> 135 <td align="left" class="style9"> 136 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 137 ControlToValidate="txtname" ErrorMessage="*" 138 Font-Size="Small"></asp:RequiredFieldValidator> 139 </td> 140 </tr> 141 <tr> 142 <td align="right" class="style2"> 143&nbsp;&nbsp;&nbsp; 址:</td> 144 <td align="left" class="style7"> 145 <asp:TextBox ID="txtaddress" runat="server" Width="153px"></asp:TextBox> 146 </td> 147 <td align="left" class="style3"> 148 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 149 ControlToValidate="txtaddress" ErrorMessage="*" 150 Font-Size="Small"></asp:RequiredFieldValidator> 151 </td> 152 </tr> 153 <tr> 154 <td align="right" class="style11"> 155&nbsp;&nbsp;&nbsp; 话:</td> 156 <td align="left" class="style12"> 157 <asp:TextBox ID="txtphone" runat="server" Width="153px"></asp:TextBox> 158 </td> 159 <td align="left" style="width: 150px"> 160 <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 161 ControlToValidate="txtphone" ErrorMessage="*" Display="Dynamic" 162 Font-Size="Small"></asp:RequiredFieldValidator> 163 <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 164 ControlToValidate="txtphone" Display="Dynamic" ErrorMessage="必须是数字!" 165 ValidationExpression="^\d+$" 166 Font-Size="Small"></asp:RegularExpressionValidator> 167 </td> 168 </tr> 169 <tr> 170 <td align="right" class="style11"> 171 Ema i l&nbsp;</td> 172 <td align="left" class="style12"> 173 <asp:TextBox ID="txtemail" runat="server" Width="153px"></asp:TextBox> 174 </td> 175 <td align="left" style="width: 150px"> 176 <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 177 ControlToValidate="txtemail" Display="Dynamic" ErrorMessage="*" 178 Font-Size="Small"></asp:RequiredFieldValidator> 179 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 180 ControlToValidate="txtemail" Display="Dynamic" ErrorMessage="格式不对!" 181 Font-Size="Small" 182 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator> 183 </td> 184 </tr> 185 <tr> 186 <td align="center" colspan="2" style="height: 29px"> 187 &nbsp; 188 <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">创建新用户</asp:LinkButton> 189 &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 190 <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 191 onclick="LinkButton2_Click">返回</asp:LinkButton> 192 </td> 193 <td align="center" style="height: 29px"> 194 &nbsp;</td> 195 </tr> 196 </table> 197 </asp:View> 198 <asp:View ID="View2" runat="server"> 199 <table style="width: 364px; height: 219px"> 200 <tr> 201 <td colspan="2" style="height: 25px" align="center"> 202 用户注册</td> 203 </tr> 204 <tr> 205 <td align="right" style="width: 160px; height: 25px"> 206 用户名:</td> 207 <td align="left" style="width: 150px; height: 25px"> 208 <asp:Label ID="lblLoginID" runat="server" Width="31px"></asp:Label> 209 </td> 210 </tr> 211 <tr> 212 <td align="right" style="width: 160px; height: 24px"> 213 真是姓名:</td> 214 <td align="left" style="width: 150px; height: 24px"> 215 <asp:Label ID="lblName" runat="server"></asp:Label> 216 </td> 217 </tr> 218 <tr> 219 <td align="right" style="width: 160px"> 220&nbsp;&nbsp;&nbsp; 址:</td> 221 <td align="left" style="width: 150px"> 222 <asp:Label ID="lblAddress" runat="server"></asp:Label> 223 </td> 224 </tr> 225 <tr> 226 <td align="right" style="width: 160px"> 227&nbsp;&nbsp;&nbsp; 话:</td> 228 <td align="left" style="width: 150px"> 229 <asp:Label ID="lblPhone" runat="server"></asp:Label> 230 </td> 231 </tr> 232 <tr> 233 <td align="right" style="width: 160px"> 234 Email&nbsp;&nbsp;</td> 235 <td align="left" style="width: 150px"> 236 <asp:Label ID="lblEmail" runat="server"></asp:Label> 237 </td> 238 </tr> 239 <tr> 240 <td align="center" colspan="2" style="height: 29px"> 241 <asp:LinkButton ID="LinkButton3" runat="server" onclick="LinkButton3_Click">确定</asp:LinkButton> 242 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 243 <asp:LinkButton ID="LinkButton4" runat="server" onclick="LinkButton4_Click">返回</asp:LinkButton> 244 </td> 245 </tr> 246 </table> 247 </asp:View> 248 </asp:MultiView> 249 </ContentTemplate> 250 </asp:UpdatePanel> 251 <table align="center" class="style1"> 252 <tr> 253 <td> 254 &nbsp;</td> 255 </tr> 256 </table> 257 &nbsp;</div> 258 259 </div> 260 </form> 261