-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.aspx
94 lines (85 loc) · 4.87 KB
/
Home.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="HiralMehta_Project.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.auto-style2 {
width: 273px;
}
#btnSubmitHome {
text-align:center;
padding:1%;
}
.auto-style3 {
width: 451px;
height: 160px;
}
.auto-style6 {
width: 451px;
}
.auto-style7 {
width: 485px;
}
.auto-style8 {
width: 485px;
height: 160px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id ='wanted'> Want a toy?
<table class='toy'>
<tr>
<td class="auto-style6">City*</td>
<td class="auto-style7">
<asp:TextBox ID="txtCityHome" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="reqValdHomeCity" runat="server" ControlToValidate="txtCityHome" ErrorMessage="Required field" Font-Size="Small" ForeColor="Red">*Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style6">Type of Toy/Game*</td>
<td class="auto-style7">
<asp:DropDownList ID="ddlTypeHome" runat="server">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="reqValdHomeType" runat="server" ControlToValidate="ddlTypeHome" ErrorMessage="Required field" Font-Size="Small" ForeColor="Red" InitialValue="-1">*Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style3">Good for kids in age group*</td>
<td class="auto-style8">
<asp:RadioButtonList ID="rblHomeAgeGroup" runat="server" Width="212px">
<asp:ListItem>Infant</asp:ListItem>
<asp:ListItem>Toddler</asp:ListItem>
<asp:ListItem>Between 5 - 8</asp:ListItem>
<asp:ListItem>Between 8 - 12</asp:ListItem>
</asp:RadioButtonList>
<asp:RequiredFieldValidator ID="reqValdHomeAge" runat="server" ControlToValidate="rblHomeAgeGroup" ErrorMessage="Required field" Font-Size="Small" ForeColor="Red">*Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style6">Availability in weeks*</td>
<td class="auto-style7"> <asp:TextBox ID="txtAvailHome" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="reqValdHomeAvail" runat="server" ControlToValidate="txtAvailHome" ErrorMessage="Required field" Font-Size="Small" ForeColor="Red">*Required</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="center" class="auto-style2" colspan="2" style="color: #FF0000;">fields marked with * are Required fields</td>
</tr>
<tr>
<td align="center" class="auto-style2" colspan="2"><asp:Button ID="btnSubmitHome" runat="server" Text="Submit" BackColor="Maroon" BorderColor="#000066" BorderStyle="Ridge" Font-Bold="True" ForeColor="White" Width="100px" OnClick="btnSubmitHome_Click" /></td>
</tr>
<tr>
<td align ="center" class="auto-style2" colspan ="2" >
<asp:Label ID="lblHome" runat="server" BorderStyle="None" Width="391px"></asp:Label></td></tr>
</table>
<asp:GridView ID="gvHome" runat="server" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" style="margin-left: 6px" Width="391px">
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
<RowStyle BackColor="White" ForeColor="#330099" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
<SortedAscendingCellStyle BackColor="#FEFCEB" />
<SortedAscendingHeaderStyle BackColor="#AF0101" />
<SortedDescendingCellStyle BackColor="#F6F0C0" />
<SortedDescendingHeaderStyle BackColor="#7E0000" />
</asp:GridView>
</div>
</asp:Content>