-
Notifications
You must be signed in to change notification settings - Fork 0
/
profileCreate.aspx
447 lines (427 loc) · 26.7 KB
/
profileCreate.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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="profileCreate.aspx.cs" Inherits="profileCreate" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headPlaceHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="articlePlaceHolder" Runat="Server">
<div class="container">
<div class="row">
<h2 class="span12">Create New Profile</h2>
</div>
<hr />
<div class="row">
<section class="span12 profile">
<div class="row">
<h4>Personal Information</h4>
</div>
<div id="personalinfo">
<div class="row">
<div class="span12">
<div class="row test">
<div class="span2 lbltxtalign">
<asp:Label ID="lblFirstName" runat="server" Text="First Name*"></asp:Label>
</div>
<div class="span3">
<asp:TextBox ID="txtFirstName" runat="server" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvFirstName"
runat="server"
ControlToValidate="txtFirstName"
Display="Dynamic"
ErrorMessage="First name is required"
Font-Size="Small"
ForeColor="Red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revFirstName"
runat="server"
ControlToValidate="txtFirstName"
Display="Dynamic"
ErrorMessage="Name cannot include numeric characters"
Font-Size="Small"
ForeColor="Red"
ValidationExpression="^[a-zA-Z'.\s]{1,25}$">
</asp:RegularExpressionValidator>
</div>
<div class="span2 lbltxtalign">
<asp:Label ID="lblMidInitial" runat="server" Text="Mid Initial"></asp:Label>
</div>
<div class="span1">
<asp:TextBox ID="txtMidInitial" runat="server" MaxLength="1"></asp:TextBox>
<asp:RegularExpressionValidator ID="revMidInitial"
runat="server"
ControlToValidate="txtMidInitial"
Display="Dynamic"
ErrorMessage="Name cannot include numeric characters"
Font-Size="Small"
ForeColor="Red"
ValidationExpression="^[a-zA-Z'.\s]$">
</asp:RegularExpressionValidator>
</div>
</div>
<div class="row">
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblLastName" runat="server" Text="Last Name*"></asp:Label>
</div>
<div class="span3">
<asp:TextBox ID="txtLastName" runat="server" MaxLength="25"></asp:TextBox>
<asp:RequiredFieldValidator ID="refLastName"
runat="server"
ControlToValidate="txtLastName"
Display="Dynamic"
ErrorMessage="Last name is required"
Font-Size="Small"
ForeColor="Red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revLastName"
runat="server"
ControlToValidate="txtLastName"
Display="Dynamic"
ErrorMessage="Name cannot include numeric or special characters"
Font-Size="Small"
ForeColor="Red"
ValidationExpression="^[a-zA-Z'.\s]{1,25}$">
</asp:RegularExpressionValidator>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblDoB" runat="server" Text="Date of Birth"></asp:Label>
</div>
<div class="span2">
<asp:TextBox ID="txtDoB" runat="server"
TextMode="Date"
CssClass="span2"></asp:TextBox>
<asp:RangeValidator ID="rvDoB"
runat="server"
ControlToValidate="txtDoB"
Display="Dynamic"
ErrorMessage="Date is outside expected range"
Font-Size="Small"
ForeColor="Red"
Type="Date">
</asp:RangeValidator>
</div>
<div class="span1">
<asp:Label ID="lblDateFormat" runat="server">mm/dd/yyyy</asp:Label>
</div>
<div class="span2 lbltxtalign">
<asp:Label ID="lblGender" text="Gender*" runat="server"></asp:Label>
</div>
<div class="span3">
<asp:DropDownList ID="ddlGender" runat="server">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
<asp:ListItem>Transgender</asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="rfvGender"
runat="server"
ControlToValidate="ddlGender"
Display="Dynamic"
ErrorMessage="Gender is required"
Font-Size="Small"
ForeColor="Red">
</asp:RequiredFieldValidator>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblHeight" runat="server" Text="Height*"></asp:Label>
</div>
<div class="span1">
<asp:TextBox ID="txtHeightFt" runat="server" MaxLength="1"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvHeightFt"
runat="server"
ControlToValidate="txtHeightFt"
Display="Dynamic"
ErrorMessage="Height feet is required"
Font-Size="Small"
ForeColor="Red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revHeightFt"
runat="server"
ControlToValidate="txtHeightFt"
Display="Dynamic"
ErrorMessage="Height must be numeric"
Font-Size="Small"
ForeColor="Red"
ValidationExpression="^\d+$">
</asp:RegularExpressionValidator>
<asp:RangeValidator ID="rvHeightFt"
runat="server"
ControlToValidate="txtHeightFt"
Display="Dynamic"
ErrorMessage="Height feet must be between 1-9"
MinimumValue="1"
MaximumValue="9">
</asp:RangeValidator>
</div>
<div class="span1">
<asp:TextBox ID="txtHeightIn" runat="server" MaxLength="2"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvHeightIn"
runat="server"
ControlToValidate="txtHeightIn"
Display="Dynamic"
ErrorMessage="Height inches is required"
Font-Size="Small"
ForeColor="Red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revHeightIn"
runat="server"
ControlToValidate="txtHeightIn"
Display="Dynamic"
ErrorMessage="Height must be numeric"
Font-Size="Small"
ForeColor="Red"
ValidationExpression="^\d+$">
</asp:RegularExpressionValidator>
<asp:RangeValidator ID="rvHeightIn"
runat="server"
ControlToValidate ="txtHeightIn"
Display="Dynamic"
Type="Double"
ErrorMessage="Height inches must be between 0-12"
MinimumValue="0"
MaximumValue="12">
</asp:RangeValidator>
</div>
<div class="span2">
<asp:Label ID="lblHeightUOM" runat="server" Text="Feet / Inches"></asp:Label>
</div>
<div class="span1 lbltxtalign">
<asp:Label ID="lblWeight" runat="server" Text="Weight*"></asp:Label>
</div>
<div class="span1">
<asp:TextBox ID="txtWeight" runat="server" MaxLength="4"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvWeight"
runat="server"
ControlToValidate="txtWeight"
Display="Dynamic"
ErrorMessage="Weight is required"
Font-Size="Small"
ForeColor="Red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revWeight"
runat="server"
ControlToValidate="txtWeight"
Display="Dynamic"
ErrorMessage="Weight must be numeric"
Font-Size="Small"
ForeColor="Red"
ValidationExpression="^\d+$">
</asp:RegularExpressionValidator>
<asp:RangeValidator ID="rvWeight"
runat="server"
ControlToValidate="txtWeight"
Display="Dynamic"
ErrorMessage="Weight must be between 1-2000"
MinimumValue="1"
MaximumValue="2000">
</asp:RangeValidator>
</div>
<div class="span2">
<asp:Label ID="lblWeightUOM" runat="server" Text="Lbs"></asp:Label>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblHairColor" runat="server" Text="Hair Color*"></asp:Label>
</div>
<div class="span3">
<asp:DropDownList ID="ddlHairColor" runat="server">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Bald</asp:ListItem>
<asp:ListItem>Blonde</asp:ListItem>
<asp:ListItem>Black</asp:ListItem>
<asp:ListItem>Brown</asp:ListItem>
<asp:ListItem>Grey</asp:ListItem>
<asp:ListItem>Red</asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="rfvHairColor"
runat="server"
ControlToValidate="ddlHairColor"
Display="Dynamic"
ErrorMessage="Hair Color is required"
Font-Size="Small"
ForeColor="Red">
</asp:RequiredFieldValidator>
</div>
<div class="span2 lbltxtalign">
<asp:Label ID="lblEyeColor" runat="server" Text="Eye Color*"></asp:Label>
</div>
<div class="span3">
<asp:DropDownList ID="ddlEyeColor" runat="server">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Blue</asp:ListItem>
<asp:ListItem>Brown</asp:ListItem>
<asp:ListItem>Gray</asp:ListItem>
<asp:ListItem>Green</asp:ListItem>
<asp:ListItem>Hazel</asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="rfvEyeColor"
runat="server"
ControlToValidate="ddlEyeColor"
Display="Dynamic"
ErrorMessage="Eye Color is required"
Font-Size="Small"
ForeColor="Red">
</asp:RequiredFieldValidator>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblRace" runat="server" Text="Race"></asp:Label>
</div>
<div class="span3">
<asp:DropDownList ID="ddlRace" runat="server">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Asian</asp:ListItem>
<asp:ListItem>Black</asp:ListItem>
<asp:ListItem>Hispanic</asp:ListItem>
<asp:ListItem>Native American</asp:ListItem>
<asp:ListItem>White</asp:ListItem>
</asp:DropDownList>
</div>
<div class="span2 lbltxtalign">
<asp:Label ID="lblComplexion" runat="server" Text="Complexion"></asp:Label>
</div>
<div class="span3">
<asp:DropDownList ID="ddlComplexion" runat="server">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Dark</asp:ListItem>
<asp:ListItem>Fair</asp:ListItem>
<asp:ListItem>Pale</asp:ListItem>
<asp:ListItem>Tan</asp:ListItem>
</asp:DropDownList>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblBuild" runat="server" Text="Build"></asp:Label>
</div>
<div class="span3">
<asp:DropDownList ID="ddlBuild" runat="server">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Light</asp:ListItem>
<asp:ListItem>Medium</asp:ListItem>
<asp:ListItem>Heavy</asp:ListItem>
</asp:DropDownList>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<p class="span3"><small>* Indicates a required field</small></p>
</div>
<hr />
<div class="row">
<h4>Address & Contact Information</h4>
</div>
<div id="address">
<div class="row">
<div class="span5">
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblStreet1" runat="server" Text="Street"></asp:Label>
</div>
<div class="span3">
<asp:TextBox ID="txtStreet1" runat="server" MaxLength="50"></asp:TextBox>
</div>
</div>
<div class="row">
<div class="span3 offset2">
<asp:TextBox ID="txtStreet2" runat="server" MaxLength="50"></asp:TextBox>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblCity" runat="server" Text="City"></asp:Label>
</div>
<div class="span3">
<asp:TextBox ID="txtCity" runat="server" MaxLength="50"></asp:TextBox>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblState" runat="server" Text="State"></asp:Label>
</div>
<div class="span1">
<asp:TextBox ID="txtState"
runat="server"
MaxLength="2"></asp:TextBox>
</div>
<div class="span1 lbltxtalign">
<asp:Label ID="lblZip" runat="server" Text="Zip"></asp:Label>
</div>
<div class="span1">
<asp:TextBox ID="txtZip"
runat="server"
MaxLength="10">
</asp:TextBox>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblCountry" runat="server" Text="Country"></asp:Label>
</div>
<div class="span3">
<asp:TextBox ID="txtCountry" runat="server" MaxLength="50"></asp:TextBox>
</div>
</div>
</div>
<div class="span5">
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblPhone1" runat="server" Text="Phone"></asp:Label>
</div>
<div class="span3">
<asp:TextBox ID="txtPhone1" runat="server" MaxLength="14"></asp:TextBox>
<asp:RegularExpressionValidator ID="revPhone1"
runat="server"
ControlToValidate="txtPhone1"
Display="Dynamic"
ErrorMessage="Phone should be formatted as:</br>(425) 555-0123</br>425-555-0123</br>425 555 0123</br>1-425-555-0123"
Font-Size="Small"
ForeColor="Red"
ValidationExpression="^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$">
</asp:RegularExpressionValidator>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblPhone2" runat="server" Text="Mobile"></asp:Label>
</div>
<div class="span3">
<asp:TextBox ID="txtPhone2" runat="server" MaxLength="14"></asp:TextBox>
<asp:RegularExpressionValidator ID="revPhone2"
runat="server"
ControlToValidate="txtPhone2"
Display="Dynamic"
ErrorMessage="Phone should be formatted as:</br>(425) 555-0123</br>425-555-0123</br>425 555 0123</br>1-425-555-0123"
Font-Size="Small"
ForeColor="Red"
ValidationExpression="^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$">
</asp:RegularExpressionValidator>
</div>
</div>
<div class="row">
<div class="span2 lbltxtalign">
<asp:Label ID="lblEmail" runat="server" Text="Email"></asp:Label>
</div>
<div class="span3">
<asp:TextBox ID="txtEmail" runat="server" TextMode="Email" MaxLength="50"></asp:TextBox>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="span2 offset8">
<asp:Button ID="btnNext" runat="server" Text="Next »" CssClass="btn btn-primary btn-block" OnClick="btnNext_Click"/>
</div>
</div>
</section>
</div>
</div><%--End container div--%>
</asp:Content>