-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathManagement.aspx
106 lines (97 loc) · 4.52 KB
/
Management.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
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeFile="Management.aspx.cs" Inherits="Management" Title="Manage Employees" %>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<div class="bodyContent">
<aside>
<asp:ListBox
runat="server"
ID="listEmployees"
OnSelectedIndexChanged="listEmployees_SelectedIndexChanged"
AutoPostBack="True"
class="list"
></asp:ListBox>
</aside>
<p>To edit a current employee's details,
click on the staff member's name and enter the updated information.</p>
<asp:Label runat="server" Text="Employee Id:" class="descriptiveLabel" />
<asp:Label runat="server" Text="" ID="lblEmployeeId" />
<br />
<asp:Label runat="server" Text="First Name:" class="descriptiveLabel" />
<asp:TextBox runat="server" Text="" ID="txtFirstName" class="textInformation" />
<asp:RequiredFieldValidator
runat="server"
ErrorMessage="A first name is required."
ControlToValidate="txtFirstName"
Display="Dynamic"
ID="requiredFieldValidator3"
/>
<br />
<asp:Label runat="server" Text="Middle Name:" class="descriptiveLabel" />
<asp:TextBox runat="server" Text="" ID="txtMiddleName" class="textInformation" />
<br />
<asp:Label runat="server" Text="Last Name:" class="descriptiveLabel" />
<asp:TextBox runat="server" Text="" ID="txtLastName" class="textInformation" />
<asp:RequiredFieldValidator
runat="server"
ErrorMessage="A last name is required."
ControlToValidate="txtLastName"
Display="Dynamic"
ID="requiredFieldValidator2"
/>
<br />
<asp:Label runat="server" Text="Date of Birth:" class="descriptiveLabel" />
<asp:TextBox runat="server" Text="" ID="txtDateOfBirth" class="textInformation" />
<asp:RequiredFieldValidator
runat="server"
ErrorMessage="A date of birth is required."
ControlToValidate="txtDateOfBirth"
Display="Dynamic"
ID="requiredFieldValidator1"/>
<br />
<asp:Label runat="server" Text="Phone Number:" class="descriptiveLabel" />
<asp:TextBox runat="server" Text="" ID="txtPhoneNumber" class="textInformation" />
<asp:RequiredFieldValidator
runat="server"
ErrorMessage="A phone number is required."
ControlToValidate="txtPhoneNumber"
Display="Dynamic"
ID="requiredFieldValidator5"
/>
<asp:RegularExpressionValidator
runat="server"
ErrorMessage="A valid phone number is required."
ControlToValidate="txtPhoneNumber"
Display="Dynamic"
ValidationExpression="\d{10}"
ID="requiredFieldValidator4"/>
<br />
<asp:Label runat="server" Text="Email Address:" class="descriptiveLabel" />
<asp:TextBox runat="server" Text="" ID="txtEmailAddress" class="textInformation" />
<asp:RequiredFieldValidator
runat="server"
ErrorMessage="An email address is required."
ControlToValidate="txtEmailAddress"
Display="Dynamic"
ID="requiredFieldValidator6"/>
<asp:RegularExpressionValidator
ID="RegularExpressionValidator1"
runat="server"
ControlToValidate="txtEmailAddress"
Display="Dynamic"
ErrorMessage="A valid email address is required."
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
<br />
<asp:Button
ID="btnUpdate"
runat="server"
Text="Save"
OnClick="btnUpdate_Click"
class="button"
/>
<asp:Button
ID="btnDelete"
runat="server"
Text="Delete"
class="button"
/>
</div>
</asp:Content>