-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventV.aspx
71 lines (58 loc) · 2.67 KB
/
EventV.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
<%@ Page Title="" Language="C#" MasterPageFile="~/vol.master" AutoEventWireup="true" CodeBehind="EventV.aspx.cs" Inherits="CapstoneFinal.EventV" %>
<asp:Content ID="Content1" ContentPlaceHolderID="nestedFirst" runat="server">
<fieldset style="margin:20px; padding:20px; display:inline;" >
<legend style="color:#450084; font-size:x-large;">Event Information</legend>
<label>Select Event: </label>
<asp:DropDownList
ID="ddlEvent"
runat="server"
DataSourceID="dsEvent"
DataTextField="EventTitle"
DataValueField="EventID"
AutoPostBack="true">
</asp:DropDownList>
<asp:Button
ID="btnEventpresent"
runat="server"
Text="Show Selected Event's Presenters"
OnClick="BtnEventPresent" />
<asp:Button
ID="btnEventAttend"
runat="server"
Text="Show Selected Event's Attendents "
OnClick="BtnEventAttend" />
<br />
<fieldset style="padding:10px; display:inline;">
<legend id="legendEvent">People: </legend>
<asp:GridView
runat="server"
ID="grdOrderResults"
AlternatingRowStyle-BackColor="#eaaaff"
EmptyDataText="No People Found!"
AutoGenerateColumns="false"
>
<Columns>
<asp:BoundField headertext=" Event Title "
datafield="Event" 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>
<br />
<asp:SqlDataSource runat="server"
ID="dsEvent"
ConnectionString="<%$ connectionStrings:lab4 %>"
SelectCommand="SELECT * FROM Event" />
</asp:Content>