/
EbooksList.aspx
80 lines (66 loc) · 4 KB
/
EbooksList.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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EbooksList.aspx.cs" Inherits="EbooksList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 241px;
}
</style></head><body bgcolor="#003388" alink=white vlink=white link=white
style="height: 615px" ><form id="form1" runat="server">
<div style="border-style:solid;background-image:url('images/bgblue.jpg');border-color:#0088cc;border-width:5px" >
<div style="background-color:#0088cc;text-align:right" >
<font face=impact size=6 color=white >The Student's Room</font>
</div>
<table style="width: 100%; height: 571px;">
<tr valign="top" >
<td class="style1" >
<br />
<center>
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/images (18).jpg"
style="margin-left: 0px" Width="205px" />
<br />
<hr size="3px" style="color: #0088CC" />
<asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="X-Large"
Text="EBooks"></asp:Label>
<hr size="3px" style="color: #0088CC" />
</center>
</td>
<td >
<asp:GridView
ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1"
ForeColor="#333333" GridLines="None" Height="324px" Width="799px">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
<asp:BoundField DataField="FileName" HeaderText="FileName"
SortExpression="FileName" />
<asp:BoundField DataField="Owner" HeaderText="Owner" SortExpression="Owner" />
<asp:BoundField DataField="UploadDate" HeaderText="UploadDate"
SortExpression="UploadDate" />
<asp:BoundField DataField="HitCount" HeaderText="Views"
SortExpression="HitCount" />
</Columns>
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [Title], [FileName], [Owner], [UploadDate], [HitCount] FROM [Documents]">
</asp:SqlDataSource>
<hr size="3px" style="color: #0088CC" />
<br />
</asp:Content>
</form>