-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSign up.aspx
75 lines (63 loc) · 4.28 KB
/
Sign up.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<%@ Page Title="Sign up" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="Sign up.aspx.cs" Inherits="Recipehub.Sign_up" UnobtrusiveValidationMode="none" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
<link rel="stylesheet" type="text/css" href="stylesheets/sign up.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="main_box cntr">
<div class="box">
<img src="assets/img/user.png" class="img-previewer" alt="user">
<div class="input_box cntr">
<asp:FileUpload ID="user_img" runat="server" class="fileUpload-previewer" />
<label for="MainContent_user_img" class="upload_img">Upload picture</label>
</div>
<div class="input_box cntr">
<div class="icons">
<i class="fas fa-user"></i>
</div>
<asp:TextBox ID="username" placeholder="Username" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" class="required-validator" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="username"></asp:RequiredFieldValidator>
</div>
<div class="input_box cntr">
<div class="icons">
<i class="fas fa-envelope"></i>
</div>
<asp:TextBox ID="email" runat="server" placeholder="E-mail"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" class="required-validator" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="email"></asp:RequiredFieldValidator>
</div>
<div class="input_box cntr">
<div class="icons">
<i class="fas fa-lock"></i>
</div>
<asp:TextBox ID="password" runat="server" type="password" placeholder="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" class="required-validator" runat="server" ErrorMessage="*" ControlToValidate="password" ForeColor="Red"></asp:RequiredFieldValidator>
</div>
<div class="input_box cntr">
<div class="icons"><i class="fas fa-lock"></i></div>
<asp:TextBox ID="confirm_password" runat="server" type="password" placeholder="Confirm Password"></asp:TextBox>
</div>
<div class="input_box cntr">
<div class="icons"><i class="fas fa-calendar"></i></div>
<input type="date" runat="server" id="birth_date" required />
</div>
<div class="input_box cntr">
<asp:RadioButton ID="male" Text="<i class='fa fa-male'></i>Male" runat="server" GroupName="gender" class="gender" required />
<asp:RadioButton ID="female" Text="<i class='fa fa-female'></i>Female" runat="server" GroupName="gender" class="gender" required />
</div>
<div class="input_box cntr flex-column">
<label for="MainContent_country">Country</label>
<asp:DropDownList ID="country" runat="server" class="cities">
</asp:DropDownList>
</div>
<div class="input_box cntr flex-column">
<label for="MainContent_city">City</label>
<asp:DropDownList ID="city" runat="server" class="cities">
</asp:DropDownList>
</div>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" class="block-validator" runat="server" ErrorMessage="Invlid email format" ControlToValidate="email" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server" class="block-validator" ErrorMessage="Passwords do not match" ControlToValidate="confirm_password" ForeColor="Red" ControlToCompare="password"></asp:CompareValidator>
<asp:Label runat="server" ID="errorLabel" ForeColor="Red"><%= err %></asp:Label>
<asp:Button ID="submit" runat="server" Text="Sign up" OnClick="submit_Click"/>
</div>
</div>
<script src="scripts/img-preview.js"></script>
</asp:Content>