-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaq.aspx
222 lines (189 loc) · 8.34 KB
/
faq.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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<%@ Page Title="FAQ" Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="faq.aspx.cs" Inherits="faq" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="CSS/siteFaq.css" rel="stylesheet" />
<link href="CSS/bootstrap.min%20-%20Copy.css" rel="stylesheet" />
<script src="Scripts/bootstrap.min.js"></script>
<script type="text/javascript" src="Script/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$(".Answer").hide();
$(".Question").click(function () {
$(this).siblings(".Answer").toggle(300);
});
});
</script>
<style type="text/css">
.auto-style1 {
height: 46px;
width: 50%;
table-layout: fixed;
text-align: center;
background-color: lightpink;
}
.auto-style2 {
height: 46px;
width: 50%;
/*background-image:url('/Images/faq.svg');*/
table-layout: fixed;
text-align: center;
background-color: lightsalmon;
}
.auto-style3 {
width: 100%;
height: 333px;
table-layout: fixed;
}
.faqImag {
height: 250px;
width: 250px;
/*margin-left:50px;*/
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div>
<table cellpadding="0" cellspacing="0" class="auto-style3">
<tr>
<td class="auto-style2">
<%-- <asp:Image ImageUrl="~/Images/faq.svg" Height="200px" Width="200px" />--%>
<img src="Images/faq.svg" class="faqImag" />
</td>
<td class="auto-style1">
<img src="Images/faq2.svg" class="faqImag" />
</td>
</tr>
</table>
<br />
<div>
<ol>
<asp:Repeater ID="rpFaq" runat="server">
<ItemTemplate>
<div>
<div class="Question" style="background-color: #eee">
<button type="button" class="btn"><%# Eval("Question") %></button></div>
<%--<div class ="Question" ><%# Eval("Question") %></div>--%>
<div class="Answer"><%# Eval("Answer") %></div>
</div>
</ItemTemplate>
</asp:Repeater>
</ol>
</div>
<br />
<%-- CONTACT FORM--%>
<div class="container" id="contactBox">
<div class="card-header">
<h2>Contact US</h2>
<asp:Label ID="lblMssg" runat="server" Text=""></asp:Label>
<div class="form-group">
<label for="txtName">
Name:</label>
<div>
<asp:TextBox ID="txtName" runat="server" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator
ForeColor="Red"
ID="RequiredName"
runat="server"
ControlToValidate="txtName"
ErrorMessage="Name is required"
Text="*">
</asp:RequiredFieldValidator>
</div>
<div class="col-md-6">
</div>
</div>
<div class="form-group">
<label for="txtEmail">
Email:</label>
<div>
<asp:TextBox ID="txtEmail" runat="server" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator
Display="Dynamic"
ForeColor="Red"
ID="RequiredEmail"
runat="server"
ControlToValidate="txtEmail"
ErrorMessage="Email is required"
Text="*">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator
Display="Dynamic"
ForeColor="Red"
ID="RegexEmail"
runat="server"
ErrorMessage="Invalid Email"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ControlToValidate="txtEmail"
Text="*">
</asp:RegularExpressionValidator>
</div>
<div class="col-md-6">
</div>
</div>
<div class="form-group">
<label for="txtSubject">
Subject:</label>
<div>
<asp:TextBox ID="txtSubject" runat="server" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator
ForeColor="Red"
ID="RequiredSubject"
runat="server"
ControlToValidate="txtSubject"
ErrorMessage="Subject is required"
Text="*">
</asp:RequiredFieldValidator>
</div>
<div class="col-md-6">
</div>
</div>
<div class="form-group">
<label for="txtPhone">
Phone Number:</label>
<div>
<asp:TextBox ID="txtPhone" runat="server" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator
ForeColor="Red"
ID="RequiredPhone"
runat="server"
ControlToValidate="txtPhone"
ErrorMessage="Phone is required"
Text="*"></asp:RequiredFieldValidator>
</div>
<div class="col-md-6">
</div>
</div>
<div class="form-group">
<label for="txtComments">
Comment:</label>
<div>
<asp:TextBox ID="txtComments" runat="server" TextMode="MultiLine" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator
ForeColor="Red"
ID="ReqComment"
runat="server"
ControlToValidate="txtComments"
ErrorMessage="Comment is required"
Text="*">
</asp:RequiredFieldValidator>
</div>
<div class="col-md-6">
</div>
</div>
<div class="form-row">
<asp:Button ID="btnCntact" runat="server" Text="Send" Style="margin-top: 8px"
CssClass="btn btn-primary btn-block" OnClick="btnCntact_Click" />
<br />
<br />
<asp:ValidationSummary
HeaderText="Please fix the following errors"
ForeColor="Red"
ID="ValidationSummaryConCat"
runat="server" Style="text-align: center" />
</div>
</div>
</div>
</div>
</asp:Content>