温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:明博静态新闻文章发布系统源码
当前文件:
MinbelNews/Files/ShowFileList.aspx,打开代码结构图
MinbelNews/Files/ShowFileList.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowFileList.aspx.cs" Inherits="Files_ShowFileList" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>明博机构 业务宝典</title> 8
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 9
<link rel="stylesheet" type="text/css" href="/Minbel.com_Css/BaseStyle.css" /> 10
<script type="text/javascript" src="http://www.minbel.com/JS/jsMainMenu.js"></script> 11
<script type="text/javascript" src="http://www.minbel.com/JS/jsSales.js"></script> 12
</head> 13
<body> 14
<form id="form1" runat="server"> 15
<script type="text/javascript"> 16
ShowTitle() 17
ShowBanner() 18
ShowMenu() 19
</script> 20
<table align="center" style="width: 950px; height: 350px;"> 21
<tr> 22
<td style="width: 260px" valign="top"> 23
24
<!-- 根据不同类别显示相关信息 --> 25
26
27
28
<script type="text/javascript"> 29
LeftSale(<%=strTypeID%>) ; 30
</script> 31
32
</td> 33
<td valign="top" > 34
<div> 35
<asp:GridView ID="gvFile" runat="server" AllowPaging="True" 36
AutoGenerateColumns="False" DataSourceID="FileSDS" OnRowDataBound="gvFile_RowDataBound"> 37
<PagerStyle HorizontalAlign="Right" /> 38
<SelectedRowStyle BackColor="#E0E0E0" /> 39
<PagerSettings FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页" PreviousPageText="上一页" Mode="NextPreviousFirstLast" /> 40
41
<Columns> 42
<asp:TemplateField HeaderText="序号"> 43
<ItemTemplate> 44
<%# Container.DataItemIndex+1 %> 45
</ItemTemplate> 46
<ItemStyle HorizontalAlign="Center" Width="8%" /> 47
</asp:TemplateField> 48
49
<asp:BoundField DataField="TypeID" HeaderText="TypeID" SortExpression="TypeID" /> 50
<asp:BoundField DataField="Url" HeaderText="Url" SortExpression="Url" /> 51
<asp:TemplateField HeaderText="标题" SortExpression="Title"> 52
<ItemTemplate> 53
<a href="<%# Eval("Url") %>" target="_blank"><%# Eval("Title") %></a> 54
</ItemTemplate> 55
</asp:TemplateField> 56
<asp:BoundField DataField="Limit" HeaderText="级别" SortExpression="Limit"> 57
<ItemStyle Width="5%" HorizontalAlign="Center" /> 58
</asp:BoundField> 59
<asp:BoundField DataField="InputTime" HeaderText="日期" DataFormatString="{0:yyyy-mm-dd}" HtmlEncode="false" SortExpression="InputTime"> 60
<ItemStyle Width="15%" HorizontalAlign="Center" /> 61
</asp:BoundField> 62
</Columns> 63
</asp:GridView> 64
<asp:AccessDataSource ID="FileSDS" runat="server" DataFile="~/App_Data/minbel.mdb" 65
SelectCommand="SELECT [TypeID],[Url], [Title], [Limit], [InputTime] FROM [FileList] WHERE ([TypeID] = 0) ORDER BY [InputTime] DESC"> 66
67
</asp:AccessDataSource> 68
</div> 69
70
</td> 71
</tr> 72
</table> 73
74
<script type="text/javascript"> 75
Showbottom() 76
</script> 77
</form> 78
</body> 79
</html> 80



ShowTitle()
ShowMenu()
