-
Notifications
You must be signed in to change notification settings - Fork 0
/
PersonnelC.aspx
64 lines (54 loc) · 2.7 KB
/
PersonnelC.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
<%@ Page Title="" Language="C#" MasterPageFile="~/coord.master" AutoEventWireup="true" CodeBehind="PersonnelC.aspx.cs" Inherits="CapstoneFinal.PersonnelC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="nestedFirst" runat="server"><div>
<fieldset style="margin:20px; padding:20px; display:inline" >
<legend style="color:#450084; font-size:x-large;">Personnel</legend>
<asp:DropDownList
ID="ddlVolunteer"
runat="server"
DataSourceID="dsEventPersonnel"
DataTextField="LastName"
DataValueField="PersonnelID"
AutoPostBack="true">
</asp:DropDownList>
<asp:Button
ID="btnLoadPersonnel"
runat="server"
Text="Show Personnel's Events"
OnClick="BtnPersonnelEvent" />
<asp:Button ID="BtnShowAll" runat="server" Text="Show All Personnel' Events"
OnClick="BtnShowAll_Click" />
<br />
<fieldset style="padding:10px; margin:10px;">
<legend>Events for Selected Personnel: </legend>
<asp:GridView
runat="server"
ID="grdOrderResults"
AlternatingRowStyle-BackColor="#eaaaff"
EmptyDataText="No Event Personnel Selected!"
AutoGenerateColumns="false">
<Columns>
<asp:BoundField headertext=" Event Title "
datafield="EventTitle" HtmlEncode="false" />
<asp:BoundField headertext="Start Time " DataFormatString="{0:hh\:mm}"
datafield="Time" HtmlEncode="false" />
<asp:BoundField headertext="End Time " DataFormatString="{0:hh\:mm}"
datafield="End" HtmlEncode="false" />
<asp:BoundField headertext=" First Name "
datafield="FirstName" HtmlEncode="false" />
<asp:BoundField headertext=" Last Name "
datafield="LastName" HtmlEncode="false" />
<asp:BoundField headertext=" Location "
datafield="Location" HtmlEncode="false" />
<asp:BoundField headertext=" Date " dataformatstring="{0:M-dd-yyyy}"
datafield="Date" HtmlEncode="false" />
</Columns>
</asp:GridView>
</fieldset>
</fieldset>
</div>
<br />
<asp:SqlDataSource runat="server"
ID="dsEventPersonnel"
ConnectionString="<%$ connectionStrings:lab4 %>"
SelectCommand="SELECT * FROM EventPersonnel" />
</asp:Content>