-
Notifications
You must be signed in to change notification settings - Fork 0
/
allRecs.aspx
56 lines (48 loc) · 3.07 KB
/
allRecs.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
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="allRecs.aspx.cs" Inherits="allRecs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headPlaceHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="articlePlaceHolder" Runat="Server">
<div class="row">
<div class="span12">
<h1>All Records</h1>
</div>
</div>
<hr />
<asp:GridView ID="allRecsGrid" runat="server" OnRowCommand="allRecsGrid_RowCommand" CssClass="table table-hover table-striped" AutoGenerateColumns="False" DataKeyNames="RegistrantID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
<asp:BoundField DataField="MidInitial" HeaderText="MidInitial" SortExpression="MidInitial" />
<asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" />
<asp:BoundField DataField="DOB" HeaderText="DOB" SortExpression="DOB" />
<asp:BoundField DataField="Height" HeaderText="Height" SortExpression="Height" />
<asp:BoundField DataField="Weight" HeaderText="Weight" SortExpression="Weight" />
<asp:BoundField DataField="HairColor" HeaderText="HairColor" SortExpression="HairColor" />
<asp:BoundField DataField="EyeColor" HeaderText="EyeColor" SortExpression="EyeColor" />
<asp:BoundField DataField="Race" HeaderText="Race" SortExpression="Race" />
<asp:BoundField DataField="Complexion" HeaderText="Complexion" SortExpression="Complexion" />
<asp:BoundField DataField="Build" HeaderText="Build" SortExpression="Build" />
<asp:BoundField DataField="RegistrantID" HeaderText="RegistrantID" InsertVisible="False" ReadOnly="True" SortExpression="RegistrantID" Visible="False" />
<asp:ButtonField HeaderText="Profile" Text="View Profile" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [FirstName], [LastName], [MidInitial], [Gender], [DOB], [Height], [Weight], [HairColor], [EyeColor], [Race], [Complexion], [Build], [RegistrantID] FROM [Registrant]"></asp:SqlDataSource>
<div class="row">
<div class="span2">
<asp:HyperLink ID="hylSearch"
runat="server"
NavigateUrl="~/search.aspx"
Text="Back to Search"
CssClass="btn btn-primary btn-block">
</asp:HyperLink>
</div>
<div class="span2 offset1">
<asp:HyperLink ID="hylGallery"
runat="server"
NavigateUrl="~/gallery.aspx"
Text="Search by Image"
CssClass="btn btn-primary btn-block">
</asp:HyperLink>
</div>
</div>
</asp:Content>