-
Notifications
You must be signed in to change notification settings - Fork 0
/
AjaxTabContainer.txt
326 lines (301 loc) · 22.9 KB
/
AjaxTabContainer.txt
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>
<%-- <script type="text/javascript" src="../Scripts/jquery-1.9.0.js"></script>
<script type="text/javascript" src="../Scripts/jquery-ui.js"></script>
<link href="../Content/main.css" rel="stylesheet" />
<link href="../Content/normalize.css" rel="stylesheet" />
<link href="../Content/sumoselect.css" rel="stylesheet" />
<link href="../Content/ui-lightness/jquery-ui-1.10.4.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../Scripts/modernizr-2.6.2.min.js"></script>
<script type="text/javascript" src="../Scripts/jquery.autocomplete.multiselect.js"></script>
<script type="text/javascript" src="../Scripts/jquery.sumoselect.js"></script>
<script type="text/javascript" >
$(document).ready(function () {
$('#' + '<%=ddlSkillSetHtml.ClientID%>').SumoSelect({
csvDispCount: 3
});
//window.test = $('.testsel').SumoSelect({ okCancelInMulti: true });
});
</script>--%>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<table width="100%">
<tr>
<td align="center">
<ajax:TabContainer ID="TabContainer1" runat="server" Width="90%" Height="80%" CssClass="MyTabStyle">
<ajaxToolkit:TabPanel TabIndex="1" runat="server" HeaderText="Part-1" ID="Tab1" ScriptPath="">
<ContentTemplate>
<asp:Label Text="" runat="server" ID="lblRegError" />
<table width="100%" align="center" cellpadding="2" class="table table-striped" cellspacing="10" border="0">
<tr>
<td colspan="4">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="RegGroup1" DisplayMode="BulletList" ForeColor="Red" ShowSummary="false" />
</td>
</tr>
<tr>
<td width="15%"></td>
<td width="20%">Name</td>
<td width="30%">
<asp:TextBox runat="server" ID="txtName" Width="90%" /></td>
<td width="35%">
<asp:RequiredFieldValidator ValidationGroup="RegGroup1" ForeColor="red" ID="RequiredFieldValidator1" ErrorMessage="Name is Required " ControlToValidate="txtName" runat="server" />
</td>
</tr>
<tr>
<td></td>
<td>Last Name</td>
<td>
<asp:TextBox runat="server" ID="txtLName" Width="90%" />
</td>
<td>
<asp:RequiredFieldValidator ForeColor="red" ValidationGroup="RegGroup1" ID="RequiredFieldValidator2" ErrorMessage="Last Name is Required" ControlToValidate="txtLName" runat="server" /></td>
</tr>
<tr>
<td></td>
<td>Gender</td>
<td>
<asp:DropDownList runat="server" ID="ddlGender" Width="91%" CssClass="CssDDL" align="center">
<asp:ListItem Text="Male" Enabled="true" Value="0" />
<asp:ListItem Text="Female" Value="1" />
</asp:DropDownList></td>
<td></td>
</tr>
<tr>
<td></td>
<td>Date Of Birth
</td>
<td>
<asp:TextBox runat="server" ReadOnly="false" onkeypress="return false;" onpaste="return false;" ViewStateMode="Enabled" ID="txtDOB" ValidationGroup="RegGroup1" AutoCompleteType="None" Width="90%" />
<ajax:CalendarExtender ID="AjaxCalDOB" DefaultView="Years" runat="server" PopupButtonID="txtDOB" TargetControlID="txtDOB" />
</td>
<td>
<asp:RequiredFieldValidator Display="Dynamic" ValidationGroup="RegGroup1" ForeColor="Red" ErrorMessage="Please Select Your Date of Birth" ControlToValidate="txtDOB" runat="server" />
<asp:RangeValidator ErrorMessage="Age should be Greaterthan 14 and Lessthan 60" ControlToValidate="txtDOB" runat="server" ForeColor="Red" Display="Dynamic" Type="Date" ID="rngValDOB"/>
</td>
</tr>
<tr>
<td></td>
<td>Country</td>
<td>
<asp:DropDownList ID="ddlCountry" ValidationGroup="RegGroup1" CssClass="CssDDL" Width="92%" runat="server" />
<ajax:CascadingDropDown ID="CountryCascading" runat="server" Category="Country" TargetControlID="ddlCountry" LoadingText="Loading Countries..." PromptText="Select Country" ServiceMethod="BindCountry" ServicePath="~/CCDDLWebService.asmx" />
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" ForeColor="red" ValidationGroup="RegGroup1" ErrorMessage="Please Select Country" ControlToValidate="ddlCountry" runat="server" />
</td>
</tr>
<tr>
<td></td>
<td>State</td>
<td>
<asp:DropDownList ID="ddlState" Style="text-align: center" Width="92%" CssClass="CssDDL" runat="server" ValidationGroup="RegGroup1" />
<ajax:CascadingDropDown ID="StateCascading" runat="server" Category="State" TargetControlID="ddlState" ParentControlID="ddlCountry" LoadingText="Loading States..." PromptText="Select State" ServiceMethod="BindState" ServicePath="~/CCDDLWebService.asmx" />
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" ForeColor="red" ValidationGroup="RegGroup1" ErrorMessage="Please Select State" ControlToValidate="ddlState" runat="server" />
</td>
</tr>
<tr>
<td></td>
<td>City</td>
<td>
<asp:DropDownList ID="ddlCity" Style="text-align: center" CssClass="CssDDL" Width="92%" runat="server" ValidationGroup="RegGroup1" />
<ajax:CascadingDropDown ID="CityCascading" runat="server" Category="Region" TargetControlID="ddlCity" ParentControlID="ddlState" LoadingText="Loading Cities..." PromptText="Select City" ServiceMethod="BindCity" ServicePath="~/CCDDLWebService.asmx" />
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" ForeColor="red" ValidationGroup="RegGroup1" ErrorMessage="Please Select City" ControlToValidate="ddlCity" runat="server" />
</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td align="center">
<asp:Button ID="btnTab1Next" Text="Next" runat="server" ValidationGroup="RegGroup1" OnClick="btnTab1Next_Click" />
</td>
</tr>
</table>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel TabIndex="2" runat="server" ID="Tab2" HeaderText="Part-2">
<ContentTemplate>
<table width="100%" align="center" cellpadding="0" class="table table-striped" cellspacing="10" border="0">
<tr>
<td colspan="4">
<asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="RegGroup2" DisplayMode="BulletList" ForeColor="Red" ShowSummary="false" />
</td>
</tr>
<tr align="center">
<td width="15%"></td>
<td width="20%">SkillSet
</td>
<td width="35%">
<select runat="server" id="ddlSkillSetHtml" multiple="true" aria-multiselectable="true" placeholder="Please select appropriate options" class="SlectBox"/>
<%--<asp:DropDownList runat="server" ID="ddlSkillSet" CssClass="CssDDL" Width="92%" ValidationGroup="RegGroup2" />--%>
</td>
<td width="30%">
<asp:Label Text="" ID="lblSkillErr" runat="server" />
</td>
</tr>
<tr align="center">
<td></td>
<td>Designation</td>
<td>
<asp:TextBox runat="server" ID="txtDesignation" Width="90%" ValidationGroup="RegGroup2" /></td>
<td>
<asp:RequiredFieldValidator ForeColor="Red" ValidationGroup="RegGroup2" ID="RequiredFieldValidator3" ErrorMessage=" Designation to be entered" ControlToValidate="txtDesignation" runat="server" /></td>
</tr>
<tr align="center">
<td></td>
<td>Company</td>
<td>
<asp:TextBox runat="server" ID="txtCompany" Width="90%" ValidationGroup="RegGroup2" />
</td>
<td>
<asp:RequiredFieldValidator ForeColor="red" ValidationGroup="RegGroup2" ErrorMessage="Please enter your Company Name" ID="rfvCompanyName" ControlToValidate="txtCompany" runat="server" />
</td>
</tr>
<tr align="center">
<td>
<asp:Button ID="btnTab2Previous" Text="Previous" runat="server" CausesValidation="false" ValidationGroup="RegGroup2" OnClick="btnTab2Previous_Click" />
</td>
<td colspan="2"></td>
<td align="center">
<asp:Button ID="btnTab2Next" Text="Next" runat="server" ValidationGroup="RegGroup2" OnClick="btnTab2Next_Click" />
</td>
</tr>
</table>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel TabIndex="3" runat="server" ID="Tab3">
<HeaderTemplate>
<h3>Educational Details</h3>
</HeaderTemplate>
<ContentTemplate>
<table width="100%" align="center" cellpadding="0" class="table table-striped" cellspacing="10" border="0">
<tr>
<td width="15%"></td>
<td width="30%">10<sup>th</sup> Percentage:</td>
<td width="25%">
<asp:TextBox runat="server" MaxLength="3" onkeypress="return blockNonNumbers(this,event)" Width="80%" ID="txt10thPercent" />%
</td>
<td width="30%">
<asp:RequiredFieldValidator Display="Dynamic" ValidationGroup="RegGroup3" ErrorMessage="Please enter your 10th Percentage" ControlToValidate="txt10thPercent" runat="server" ForeColor="Red" />
<asp:RangeValidator Display="Dynamic" ValidationGroup="RegGroup3" ErrorMessage="Entered values are out of Range" ControlToValidate="txt10thPercent" runat="server" MinimumValue="1" MaximumValue="100" Type="Integer" ForeColor="Red" />
</td>
</tr>
<tr>
<td></td>
<td>Inter Percentage:</td>
<td>
<asp:TextBox runat="server" MaxLength="3" onkeypress="return blockNonNumbers(this,event)" Width="80%" ID="txtInterPercent" />%
</td>
<td>
<asp:RequiredFieldValidator Display="Dynamic" ValidationGroup="RegGroup3" ErrorMessage="Please enter your Inter marks" ControlToValidate="txtInterPercent" runat="server" ForeColor="Red" />
<asp:RangeValidator ID="RangeValidator1" Display="Dynamic" ValidationGroup="RegGroup3" ErrorMessage="Entered values are out of Range" ControlToValidate="txtInterPercent" runat="server" MinimumValue="1" Type="Integer" MaximumValue="100" ForeColor="Red" />
</td>
</tr>
<tr>
<td></td>
<td>Graduation :</td>
<td>
<asp:RadioButtonList runat="server" ID="rdoLstSelect" RepeatDirection="Horizontal">
<asp:ListItem Text="Degree" Value="0" Selected="False" />
<asp:ListItem Text="B.tect" Value="1" />
</asp:RadioButtonList>
</td>
<td>
<asp:RequiredFieldValidator ErrorMessage="Please select one option" ValidationGroup="RegGroup3" ForeColor="Red" ControlToValidate="rdoLstSelect" runat="server" />
</td>
</tr>
<tr>
<td></td>
<td>Graduation Percentage :
</td>
<td>
<asp:TextBox runat="server" MaxLength="3" onkeypress="return blockNonNumbers(this,event)" ID="txtGradPercent" ValidationGroup="RegGroup3" Width="80%" />%
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" Display="Dynamic" ValidationGroup="RegGroup3" ErrorMessage="Please enter your Graduation marks" ControlToValidate="txtGradPercent" runat="server" ForeColor="Red" />
<asp:RangeValidator ID="RangeValidator2" Display="Dynamic" ValidationGroup="RegGroup3" ErrorMessage="Entered values are out of Range" ControlToValidate="txtGradPercent" runat="server" MinimumValue="1" Type="Integer" MaximumValue="100" ForeColor="Red" />
</td>
</tr>
<tr>
<td></td>
<td>
P.G. Percentage :
</td>
<td>
<asp:TextBox runat="server" onkeypress="return blockNonNumbers(this,event)" MaxLength="3" id="txtPGPercent" Width="80%" ValidationGroup="RegGroup3"/>%
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" Display="Dynamic" ValidationGroup="RegGroup3" ErrorMessage="Please enter your Graduation marks" ControlToValidate="txtPGPercent" runat="server" ForeColor="Red" />
<asp:RangeValidator ID="RangeValidator3" Display="Dynamic" ValidationGroup="RegGroup3" ErrorMessage="Entered values are out of Range" ControlToValidate="txtPGPercent" runat="server" MinimumValue="1" Type="Integer" MaximumValue="100" ForeColor="Red" />
</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr align="center">
<td>
<asp:Button Text="Previous" runat="server" ID="btnTab3Previous" CausesValidation="false" ValidationGroup="RegGroup3" OnClick="btnTab3Previous_Click" />
</td>
<td colspan="2"></td>
<td align="center">
<asp:Button Text="Next" ID="btnTab3Next" ValidationGroup="RegGroup3" CausesValidation="true" OnClick="btnTab3Next_Click" runat="server" />
</td>
</tr>
</table>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel runat="server" ID="Tab4" TabIndex="4">
<ContentTemplate>
<table>
<tr>
<td>
<asp:Button Text="Previous" runat="server" ID="btnTab4Previous" CausesValidation="false" OnClick="btnTab4Previous_Click" ValidationGroup="RegGroup4" />
</td>
<td colspan="2"></td>
<td>
<asp:Button Text="Next" ID="btnTab4Next" OnClick="btnTab4Next_Click" ValidationGroup="RegGroup4" runat="server" />
</td>
</tr>
</table>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajax:TabContainer>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
////////////////////////.cs///////////////////////////////////////////
protected void btnTab1Next_Click(object sender, EventArgs e)
{
TabContainer1.ActiveTab = Tab2;
}
protected void btnTab2Previous_Click(object sender, EventArgs e)
{
TabContainer1.ActiveTab = Tab1;
}
protected void btnTab2Next_Click(object sender, EventArgs e)
{
TabContainer1.ActiveTab = Tab3;
}
protected void btnTab3Previous_Click(object sender, EventArgs e)
{
TabContainer1.ActiveTab = Tab2;
}
protected void btnTab3Next_Click(object sender, EventArgs e)
{
TabContainer1.ActiveTab = Tab4;
}
protected void btnTab4Previous_Click(object sender, EventArgs e)
{
TabContainer1.ActiveTab = Tab3;
}
protected void btnTab4Next_Click(object sender, EventArgs e)
{
}