-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefault.aspx
More file actions
77 lines (74 loc) · 3.73 KB
/
Copy pathDefault.aspx
File metadata and controls
77 lines (74 loc) · 3.73 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
<%@ Page Language="C#" Inherits="workChallengeWebForm.Default" CodeBehind="Default"%>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Employee Registration</title>
</head>
<body>
<form id="form1" runat="server">
<h3> Employee Registration </h3>
<div>
<!-- hidden field to represent employee ukey to be inserted into database-->
<asp:HiddenField id="emoloyeeID" runat="server"/>
<!-- input the last name of the user-->
<asp:TextBox ID="lastName" Columns="30" MaxLength="20" MinLength="2" Placeholder="Enter Last Name" runat="server"/>
<!-- input the first name of the user-->
<asp:TextBox ID="firstName" Columns="30" MaxLength="20" MinLength="2" Placeholder="Enter First Name" runat="server"/>
<!-- input the phone number of the user-->
<asp:TextBox id="phoneNumber" Columns="30" MaxLength="10" MinLength="10" Placeholder="Enter 10 digit phone #" runat="server"/>
<!-- input the zip code with -->
<asp:TextBox id="zipCode" Columns="30" MaxLength="5" MinLength="5" Placeholder="Enter Zip Code" runat="server"/>
<!-- return the current date-->
<asp:TextBox id="dateHired" Columns="30" MaxLength="10" MinLenght="10" PlaceHolder="Date hired: mm/dd/yyyy" runat="server"/><br/><br/>
<!-- This is where the table goes -->
<asp:Label ID="AnswerMessage" runat="server"/>
</div>
<!-- Button will submit form data to the database-->
<p id="button-container">
<asp:Button ID="btnSave" Text="Save" OnClick="Button1Clicked" runat="server"/>
</p>
<!-- grid view returning data-->
<!-- validations to narrate the user's entry in required fields-->
<div id="validation-container">
<asp:RequiredFieldValidator
ID="lastNameRequiredValidator"
ControlToValidate="lastName"
ErrorMessage="Please enter a value for your Last Name.<br />"
Display="Dynamic"
ValidationExpression="^\b[a-zA-Z\s_\-]{1,20}$"
Type="Text"
runat="server"/>
<asp:RequiredFieldValidator
ID="firstNameRequiredValidator"
ControlToValidate="firstName"
ErrorMessage="Please enter a value for your First Name.<br />"
Display="Dynamic"
Type="Text"
ValidationExpression="^\b[a-zA-Z\s_\-]{1,20}$"
runat="server"/>
<asp:RequiredFieldValidator
ID="phoneNumberRequiredValidator"
ControlToValidate="phoneNumber"
ErrorMessage="Please enter a value for your Phone Number.<br />"
Display="Dynamic"
Type="Integer"
ValidationExpression="^\b[a-zA-Z\s_\-]{1,20}$"
runat="server"/>
<asp:RequiredFieldValidator
ID="zipCodeRequiredValidator"
ControlToValidate="zipCode"
ErrorMessage="Please enter a value for your ZipCode.<br />"
Display="Dynamic"
ValidationExpression="^\b[a-zA-Z\s_\-]{1,20}$"
runat="server"/>
<asp:RequiredFieldValidator
ID="dateRequiredValidator"
ControlToValidate="dateHired"
ErrorMessage="Please enter the current Date.<br />"
Display="Dynamic"
ValidationExpression="^\b[a-zA-Z\s_\-]{1,20}$"
runat="server"/>
</div>
</form>
</body>
</html>