-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddVolunteerC.aspx
113 lines (90 loc) · 5.67 KB
/
AddVolunteerC.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
<%@ Page Title="" Language="C#" MasterPageFile="~/coord.master" AutoEventWireup="true" CodeBehind="AddVolunteerC.aspx.cs" Inherits="CapstoneFinal.AddVolunteerC" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="nestedFirst" runat="server">
<div>
<asp:ScriptManager
ID="ScriptManager1"
runat="server"
>
</asp:ScriptManager>
<br />
<fieldset style="margin:20px; padding:20px; width:900px;">
<legend style="color:#450084; font-size:x-large;">Volunteer Registration</legend>
<br />
<asp:TableRow>
<asp:TableCell>
<asp:Label ID="lblFirstName" runat="server" Text="First Name:"></asp:Label>
</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtFirstName" runat="server" Text="" Value=""></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorFN" runat="server" ControlToValidate="txtFirstName" Display="Dynamic" ForeColor="Red" SetFocusOnError="true" Text="* This field is required" ErrorMessage="Error: First Name Field is Blank"></asp:RequiredFieldValidator>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>
<asp:Label ID="lblLastName" runat="server" Text="Last Name:"></asp:Label>
</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtLastName" runat="server" Text="" Value=""></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorLN" runat="server" ControlToValidate="txtLastName" Display="Dynamic" ForeColor="Red" SetFocusOnError="true" Text="* This field is required" ErrorMessage="Error: Last Name Field is Blank"></asp:RequiredFieldValidator>
</asp:TableCell>
</asp:TableRow>
<br />
<br />
<asp:TableRow>
<asp:TableCell>
<asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label>
</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtEmail" runat="server" Text=""></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorEmail" runat="server" ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" SetFocusOnError="true" Text="* This field is required" ErrorMessage="Error: Email Field is Blank"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="txtEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail" ErrorMessage="Error: Invalid Email Format" ForeColor="Red"></asp:RegularExpressionValidator>
</asp:TableCell>
</asp:TableRow>
<br />
<br />
<asp:TableRow>
<asp:TableCell>
<asp:Label ID="lblPassword" runat="server" Text="Password:"></asp:Label>
</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtPassword" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPassword" Display="Dynamic" ForeColor="Red" SetFocusOnError="true" Text="* This field is required" ErrorMessage="Error: Password Field is Blank"></asp:RequiredFieldValidator>
</asp:TableCell>
</asp:TableRow>
<br />
<br />
<asp:TableRow>
<asp:TableCell>
<asp:Label ID="Label4" runat="server" Text="Phone Number:"></asp:Label>
<asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
<asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtPhone"
Mask="(999)-999-9999" MessageValidatorTip="true" ErrorTooltipEnabled="True" ></asp:MaskedEditExtender>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Required Field" ControlToValidate="txtPhone" Display="Dynamic" ForeColor="Red" SetFocusOnError="true" Text="* This field is required"></asp:RequiredFieldValidator>
</asp:TableCell>
</asp:TableRow>
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="Shirt: "></asp:Label>
<br />
<asp:ListBox
ID="ListBox1"
runat="server"
DataSourceID="dsShirt"
DataTextField="Combo"
DataValueField="ShirtInfoId"
>
</asp:ListBox>
<br />
<br />
<br />
<asp:Button ID="butClear" runat="server" Text=" Start Over " OnClick="butClear_Click" CausesValidation="false" BorderStyle="Solid" style="color:red; border-color: #450084"/>
<asp:Button ID="butInsert" runat="server" Text=" Create Account " OnClick="butCreate_Click" Message="Success! Volunteer Added." BorderStyle="Solid" style="color:#450084; border-color: #450084" />
</fieldset>
</div>
<br />
<asp:SqlDataSource runat="server"
ID="dsShirt"
ConnectionString="<%$ connectionStrings:lab4 %>"
SelectCommand="Select (ShirtSize + ' ' + ShirtColor) As Combo, ShirtInfoID from TShirtConfigurations" />
</asp:Content>