-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfrmReg.aspx
More file actions
131 lines (118 loc) · 5.48 KB
/
frmReg.aspx
File metadata and controls
131 lines (118 loc) · 5.48 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
private void Page_Load(object sender, EventArgs e)
{
// if(!IsPostBack)
//{
getYears();
dropY.Items.Insert(0, "Year");
getMonths();
dropM.Items.Insert(0, "MM");
getDays();
dropD.Items.Insert(0, "DD");
// }
}
public void getYears()
{
int i;
for(i=2000;i<=2020;i++)
{
dropY.Items.Add(i.ToString());
}
}
public void getMonths()
{
int i;
for(i=1;i<=12;i++)
{
dropM.Items.Add(i.ToString());
}
}
public void getDays()
{
int i;
for(i=1;i<=32;i++)
{
dropD.Items.Add(i.ToString());
}
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
Response.Redirect("home.aspx");
}
</script>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta charset="utf-8" />
<title></title>
<style type="text/css">
#form1 {
width: 490px;
border-color:#009900;
}
body{
background-color:azure;
}
</style>
</head>
<body>
<form id="form1" runat="server" style="border-color:#009900; margin-top: 100px; margin-left: 350px; border:solid; color: #009900;">
<asp:Panel ID="Panel3" runat="server" BackColor="#009900" ForeColor="White" Height="30px" Width="490px">
<asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Size="18pt" ForeColor="White" Text="Registration Form"></asp:Label>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" Height="279px" Width="489px">
<br />
<asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="#009933" Text="Name :"></asp:Label>
<asp:TextBox ID="txtName" runat="server" Width="223px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFV" runat="server" ErrorMessage="* Require" ControlToValidate="txtName" ForeColor="Red" ></asp:RequiredFieldValidator>
<br />
<br />
<asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="#009933" Text="Password :"></asp:Label>
<asp:TextBox ID="txtPass" runat="server" Width="223px" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFV0" runat="server" ControlToValidate="txtPass" ErrorMessage="* Require" ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<br />
<asp:Label ID="Label4" runat="server" Font-Bold="True" ForeColor="#009933" Text="ReType Password :"></asp:Label>
<asp:TextBox ID="txtRePass" runat="server" Width="223px" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFV1" runat="server" ControlToValidate="txtRePass" ErrorMessage="* Require" ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<br />
<asp:Label ID="Label5" runat="server" Font-Bold="True" ForeColor="#009933" Text="Gender :"></asp:Label>
<asp:RadioButton ID="radioMale" runat="server" Text="Male" GroupName="gender" Checked="True" />
<asp:RadioButton ID="radioFemale" runat="server" Text="Female" GroupName="gender" />
<br />
<br />
<asp:Label ID="Label6" runat="server" Font-Bold="True" ForeColor="#009933" Text="Date of Birth :"></asp:Label>
<asp:DropDownList ID="dropY" runat="server" Height="20px" Width="74px" >
</asp:DropDownList>
<asp:DropDownList ID="dropM" runat="server" Height="19px" Width="50px">
</asp:DropDownList>
<asp:DropDownList ID="dropD" runat="server" Height="19px" Width="50px">
</asp:DropDownList>
<br />
<br />
<asp:Button ID="btnSubmit" runat="server" BackColor="#009933" Font-Bold="True" Font-Size="12pt" ForeColor="White" Height="32px" Text="Submit" Width="87px" OnClick="btnSubmit_Click" />
<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtName" ErrorMessage="CustomValidator"></asp:CustomValidator>
<br />
<br />
<br />
<br />
</asp:Panel>
</form>
</body>
</html>