00001: <%@ Page Language="VB" MasterPageFile="~/M1.master" AutoEventWireup="false" CodeFile="registration.aspx.vb" 00002: Inherits="registration" %> 00003: <%@ MasterType VirtualPath="~/M1.master" %> 00004: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> 00005: <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"> 00006: <asp:View ID="View1" runat="server"> 00007: <asp:Label ID="Label4" runat="server" Text="Регистрация нового пользователя"></asp:Label><br /> 00008: <table> 00009: <tr> 00010: <td> 00011: <asp:Label ID="Label18" runat="server" Text="Email"></asp:Label> 00012: </td> 00013: <td> 00014: <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="TextBox1" 00015: runat="server" ErrorMessage="*"></asp:RequiredFieldValidator> 00016: <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ControlToValidate="TextBox1" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td> 00017: <td> 00018: <asp:TextBox ID="TextBox1" runat="server" MaxLength="50" Width="250px"></asp:TextBox> 00019: </td> 00020: </tr> 00021: <tr> 00022: <td> 00023: <asp:Label ID="Label2" runat="server" Text="Пароль"></asp:Label> 00024: </td> 00025: <td> 00026: <asp:RequiredFieldValidator ControlToValidate="TextBox2" ID="RequiredFieldValidator2" 00027: runat="server" ErrorMessage="*"></asp:RequiredFieldValidator> 00028: </td> 00029: <td> 00030: <asp:TextBox ID="TextBox2" MaxLength="20" TextMode="Password" runat="server" Width="250px"></asp:TextBox> 00031: </td> 00032: </tr> 00033: <tr> 00034: <td> 00035: <asp:Label ID="Label3" runat="server" Text="Еще раз"></asp:Label> 00036: </td> 00037: <td> 00038: <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="*" ControlToCompare="TextBox2" 00039: ControlToValidate="TextBox21"></asp:CompareValidator> 00040: <asp:RequiredFieldValidator ControlToValidate="TextBox21" ID="RequiredFieldValidator3" 00041: runat="server" ErrorMessage="*"></asp:RequiredFieldValidator> 00042: </td> 00043: <td> 00044: <asp:TextBox ID="TextBox21" MaxLength="30" runat="server" Width="250px" TextMode="Password"></asp:TextBox> 00045: </td> 00046: </tr> 00047: <tr> 00048: <td> 00049: <asp:Label ID="Label1" runat="server" Text="Имя"></asp:Label> 00050: </td> 00051: <td> 00052: <asp:RequiredFieldValidator ControlToValidate="TextBox2" ID="RequiredFieldValidator1" 00053: runat="server" ErrorMessage="*"></asp:RequiredFieldValidator> 00054: </td> 00055: <td> 00056: <asp:TextBox ID="usLogin" MaxLength="50" runat="server" Width="250px"></asp:TextBox> 00057: </td> 00058: </tr> 00059: <tr> 00060: <td> 00061: <asp:Label ID="Label7" runat="server" Text="Пол"></asp:Label> 00062: </td> 00063: <td> 00064: <asp:RequiredFieldValidator ControlToValidate="TextBox2" ID="RequiredFieldValidator5" 00065: runat="server" ErrorMessage="*"></asp:RequiredFieldValidator> 00066: </td> 00067: <td> 00068: <asp:DropDownList ID="DropDownList1" runat="server" Width="250px"> 00069: <asp:ListItem>М</asp:ListItem> 00070: <asp:ListItem>Ж</asp:ListItem> 00071: </asp:DropDownList></td> 00072: </tr> 00073: <tr> 00074: <td> 00075: <asp:Label ID="Label8" runat="server" Text="Год рождения"></asp:Label> 00076: </td> 00077: <td> 00078: <asp:RequiredFieldValidator ControlToValidate="TextBox2" ID="RequiredFieldValidator6" 00079: runat="server" ErrorMessage="*"></asp:RequiredFieldValidator> 00080: </td> 00081: <td> 00082: <asp:DropDownList ID="cbDay" runat="server" Width="50"> 00083: <asp:ListItem>1</asp:ListItem> 00084: <asp:ListItem>2</asp:ListItem> 00085: <asp:ListItem>3</asp:ListItem> 00086: <asp:ListItem>4</asp:ListItem> 00087: <asp:ListItem>5</asp:ListItem> 00088: <asp:ListItem>6</asp:ListItem> 00089: <asp:ListItem>7</asp:ListItem> 00090: <asp:ListItem>8</asp:ListItem> 00091: <asp:ListItem>9</asp:ListItem> 00092: <asp:ListItem>10</asp:ListItem> 00093: <asp:ListItem>11</asp:ListItem> 00094: <asp:ListItem>12</asp:ListItem> 00095: <asp:ListItem>13</asp:ListItem> 00096: <asp:ListItem>14</asp:ListItem> 00097: <asp:ListItem>15</asp:ListItem> 00098: <asp:ListItem>16</asp:ListItem> 00099: <asp:ListItem>17</asp:ListItem> 00100: <asp:ListItem>18</asp:ListItem> 00101: <asp:ListItem>19</asp:ListItem> 00102: <asp:ListItem>20</asp:ListItem> 00103: <asp:ListItem>21</asp:ListItem> 00104: <asp:ListItem>22</asp:ListItem> 00105: <asp:ListItem>23</asp:ListItem> 00106: <asp:ListItem>24</asp:ListItem> 00107: <asp:ListItem>25</asp:ListItem> 00108: <asp:ListItem>26</asp:ListItem> 00109: <asp:ListItem>27</asp:ListItem> 00110: <asp:ListItem>28</asp:ListItem> 00111: <asp:ListItem>29</asp:ListItem> 00112: <asp:ListItem>30</asp:ListItem> 00113: <asp:ListItem>31</asp:ListItem> 00114: </asp:DropDownList> 00115: <asp:DropDownList ID="cbMonth" runat="server" Width="80"> 00116: <asp:ListItem Value="1">январь</asp:ListItem> 00117: <asp:ListItem Value="2">февраль</asp:ListItem> 00118: <asp:ListItem Value="3">март</asp:ListItem> 00119: <asp:ListItem Value="4">апрель</asp:ListItem> 00120: <asp:ListItem Value="5">май</asp:ListItem> 00121: <asp:ListItem Value="6">июнь</asp:ListItem> 00122: <asp:ListItem Value="7">июль</asp:ListItem> 00123: <asp:ListItem Value="8">август</asp:ListItem> 00124: <asp:ListItem Value="9">сентябрь</asp:ListItem> 00125: <asp:ListItem Value="10">октябрь</asp:ListItem> 00126: <asp:ListItem Value="11">ноябрь</asp:ListItem> 00127: <asp:ListItem Value="12">декабрь</asp:ListItem> 00128: </asp:DropDownList> 00129: <asp:DropDownList ID="cbYear" runat="server" Width="60px"> 00130: <asp:ListItem>1937</asp:ListItem> 00131: <asp:ListItem>1938</asp:ListItem> 00132: <asp:ListItem>1939</asp:ListItem> 00133: <asp:ListItem>1940</asp:ListItem> 00134: <asp:ListItem>1941</asp:ListItem> 00135: <asp:ListItem>1942</asp:ListItem> 00136: <asp:ListItem>1943</asp:ListItem> 00137: <asp:ListItem>1944</asp:ListItem> 00138: <asp:ListItem>1945</asp:ListItem> 00139: <asp:ListItem>1946</asp:ListItem> 00140: <asp:ListItem>1947</asp:ListItem> 00141: <asp:ListItem>1948</asp:ListItem> 00142: <asp:ListItem>1949</asp:ListItem> 00143: <asp:ListItem>1950</asp:ListItem> 00144: <asp:ListItem>1951</asp:ListItem> 00145: <asp:ListItem>1952</asp:ListItem> 00146: <asp:ListItem>1953</asp:ListItem> 00147: <asp:ListItem>1954</asp:ListItem> 00148: <asp:ListItem>1955</asp:ListItem> 00149: <asp:ListItem>1956</asp:ListItem> 00150: <asp:ListItem>1957</asp:ListItem> 00151: <asp:ListItem>1958</asp:ListItem> 00152: <asp:ListItem>1959</asp:ListItem> 00153: <asp:ListItem>1960</asp:ListItem> 00154: <asp:ListItem>1961</asp:ListItem> 00155: <asp:ListItem>1962</asp:ListItem> 00156: <asp:ListItem>1963</asp:ListItem> 00157: <asp:ListItem>1964</asp:ListItem> 00158: <asp:ListItem>1965</asp:ListItem> 00159: <asp:ListItem>1966</asp:ListItem> 00160: <asp:ListItem>1967</asp:ListItem> 00161: <asp:ListItem>1968</asp:ListItem> 00162: <asp:ListItem>1969</asp:ListItem> 00163: <asp:ListItem>1970</asp:ListItem> 00164: <asp:ListItem>1971</asp:ListItem> 00165: <asp:ListItem>1972</asp:ListItem> 00166: <asp:ListItem>1973</asp:ListItem> 00167: <asp:ListItem>1974</asp:ListItem> 00168: <asp:ListItem>1975</asp:ListItem> 00169: <asp:ListItem>1976</asp:ListItem> 00170: <asp:ListItem>1977</asp:ListItem> 00171: <asp:ListItem>1978</asp:ListItem> 00172: <asp:ListItem>1979</asp:ListItem> 00173: <asp:ListItem>1980</asp:ListItem> 00174: <asp:ListItem>1981</asp:ListItem> 00175: <asp:ListItem>1982</asp:ListItem> 00176: <asp:ListItem>1983</asp:ListItem> 00177: <asp:ListItem>1984</asp:ListItem> 00178: <asp:ListItem>1985</asp:ListItem> 00179: <asp:ListItem>1986</asp:ListItem> 00180: <asp:ListItem>1987</asp:ListItem> 00181: <asp:ListItem>1988</asp:ListItem> 00182: <asp:ListItem>1989</asp:ListItem> 00183: <asp:ListItem>1990</asp:ListItem> 00184: <asp:ListItem>1991</asp:ListItem> 00185: <asp:ListItem>1992</asp:ListItem> 00186: <asp:ListItem>1993</asp:ListItem> 00187: <asp:ListItem>1994</asp:ListItem> 00188: <asp:ListItem>1995</asp:ListItem> 00189: <asp:ListItem>1996</asp:ListItem> 00190: <asp:ListItem>1997</asp:ListItem> 00191: </asp:DropDownList> 00192: </td> 00193: </tr> 00194: <tr> 00195: <td> 00196: <asp:Label ID="Label9" runat="server" Text="Город/Страна"></asp:Label> 00197: </td> 00198: <td> 00199: <asp:RequiredFieldValidator ControlToValidate="TextBox2" ID="RequiredFieldValidator7" 00200: runat="server" ErrorMessage="*"></asp:RequiredFieldValidator> 00201: </td> 00202: <td> 00203: <asp:TextBox ID="usTown" MaxLength="50" runat="server" Width="250px"></asp:TextBox> 00204: </td> 00205: </tr> 00206: <tr> 00207: <td> 00208: <asp:CustomValidator ID="AgreeRequred" runat="server" ErrorMessage="*" Display="dynamic" ClientValidationFunction="validateCheckbox">*</asp:CustomValidator> 00209: <td> 00210: </td> 00211: <td> 00212: <asp:CheckBox ID="_chkAgree" runat="server" Text="Я согласен с" /> 00213: <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/EULA.aspx" Target="_blank">этими требованиями</asp:HyperLink></td> 00214: </tr> 00215: <tr> 00216: <td> 00217: <asp:Image ID="Image1" runat="server" ImageUrl="~/RandomImage.ashx?N=1" /></td> 00218: <td> 00219: <asp:Label ID="L10" runat="server" ForeColor="Red" Text="*" Visible="False"></asp:Label></td> 00220: <td> 00221: <asp:TextBox ID="TextBox6" runat="server" MaxLength="20" Width="250px"></asp:TextBox></td> 00222: </tr> 00223: <tr> 00224: <td style="height: 26px"> 00225: </td> 00226: <td style="height: 26px"> 00227: </td> 00228: <td style="height: 26px" align="right"> 00229: <asp:Button ID="btOK" runat="server" Text="Зарегистрироваться" /> 00230: </td> 00231: </tr> 00232: </table> 00233: <asp:Label ID="lerr" runat="server" ForeColor="Red"></asp:Label><br /> 00234: <br /> 00235: <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="Внимание! Вы можете разместить информацию о себе прямо сейчас. Однако доступной другим пользователям для просмотра она станет только после активации вами ссылки, высланной на указанный вами почтовый адрес. Вы должны кликнуть по высланной вам ссылке в течении суток с момента регистрации - в противном случае размещенная вами информация будет удалена."></asp:Label> 00236: 00237: <script type="text/javascript"> 00238: function validateCheckbox(source, args) 00239: { 00240: args.IsValid = document.getElementById('<%= _chkAgree.ClientID %>').checked; 00241: } 00242: </script> 00243: 00244: </asp:View> 00245: <asp:View ID="View2" runat="server"> 00246: <asp:Label ID="Label5" runat="server" Text="Выйти?"></asp:Label><br /> 00247: <table> 00248: <tr> 00249: <td> 00250: <asp:Button ID="Button1" runat="server" Text="Да" Width="100px" /> 00251: </td> 00252: <td> 00253: <asp:Button ID="Button2" runat="server" Text="Нет" Width="100px" /> 00254: </td> 00255: </tr> 00256: </table> 00257: </asp:View> 00258: </asp:MultiView> 00259: 00260: </asp:Content>
Comments (
)
<00>
<01>
<02>
<03>
<04>
<05>
<06>
<07>
<08>
<09>
<10>
<11>
<12>
<13>
<14>
<15>
<16>
<17>
<18>
<19>
<20>
<21>
<22>
<23>
Link to this page:
//www.vb-net.com/asp2/35/7.htm
<SITEMAP> <MVC> <ASP> <NET> <DATA> <KIOSK> <FLEX> <SQL> <NOTES> <LINUX> <MONO> <FREEWARE> <DOCS> <ENG> <CHAT ME> <ABOUT ME> < THANKS ME> |