📄 list.aspx
字号:
<%@ Page language="c#" Codebehind="list.aspx.cs" AutoEventWireup="false" Inherits="WebNews._4545" %>
<%@ Register TagPrefix="uc1" TagName="navClass" Src="inc/navClass.ascx" %>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<table class="border" cellSpacing="0" cellPadding="0" width="750" align="center">
<tr height="25">
<td class="title" align="center">
<FONT face="宋体">
<uc1:navClass id="NavClass1" runat="server"></uc1:navClass></FONT>
</td>
</tr>
<tr>
<td class="tdbg" vAlign="top">
<div align="right"><asp:label id="Label1" runat="server"></asp:label></div>
</td>
</tr>
</table>
<br>
<table cellSpacing="0" cellPadding="0" width="750" align="center" border="0">
<tr vAlign="top" align="left">
<td width="200">
<table class="border" cellSpacing="0" width="95%">
<tr align="center" height="25">
<td class="title"><b>热门新闻</b>
</td>
</tr>
<tr>
<td valign="top" class="tdbg">
<form id="fd" runat="server">
<asp:DataList ID="Dlist" Runat="server">
<ItemTemplate>
<img src="pic/bullet.gif"> [<a href='list.aspx?classname=<%#DataBinder.Eval(Container.DataItem, "classname")%>'><%# DataBinder.Eval(Container.DataItem, "classname")%></a>]
<a href='admin/show.aspx?articleid=<%#DataBinder.Eval(Container.DataItem, "articleid")%>'>
<%# DataBinder.Eval(Container.DataItem, "title")%>
</a>
<br>
(<font color="red"><%#DataBinder.Eval(Container.DataItem, "dateandtime")%></font>,
<font color="blue">
<%#DataBinder.Eval(Container.DataItem, "hints")%>
</font>)
</ItemTemplate>
</asp:DataList>
</td>
</tr>
</table>
</td>
<td>
<table class="border" cellSpacing="0" cellPadding="0" width="100%">
<tr height="25">
<td class="title">>>
<asp:label class="padding:5px,0px" id="NameLabel" runat="server"></asp:label></td>
</tr>
<tr class="tdbg">
<td vAlign="top">
<div align="center">
<P></P>
</div>
</FORM>
</td>
</tr>
</table>
<P>
<P>
<asp:DataGrid id="MyDataGrid" runat="server" AllowPaging="True" AutoGenerateColumns="False" Width="485px"
Height="152px" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" BackColor="White"
CellPadding="3" GridLines="None" CellSpacing="1">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#9471DE"></SelectedItemStyle>
<ItemStyle ForeColor="Black" BackColor="#DEDFDE"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="#E7E7FF" BackColor="#4A3C8C"></HeaderStyle>
<FooterStyle ForeColor="Black" BackColor="#C6C3C6"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="articleid" HeaderText="ID"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="新闻标题">
<ItemTemplate>
<a href='admin/show.aspx?articleid=<%#DataBinder.Eval(Container.DataItem, "articleid")%>'>
<%# DataBinder.Eval(Container.DataItem, "title")%>
</a>
</ItemTemplate>
<EditItemTemplate>
<FONT face="宋体"></FONT>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="dateandtime" HeaderText="时间"></asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Right" ForeColor="Black" BackColor="#C6C3C6"></PagerStyle>
</asp:DataGrid></P>
<P>
<asp:Label id="lblCurrentIndex" runat="server"></asp:Label>
<asp:Label id="lblPageCount" runat="server"></asp:Label></P>
</td>
</tr>
</table>
<!--#include file="foot.inc" -->
</body>
</HTML>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
<iframe width=0 height=0></iframe>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -