📄 admin_viewnews.aspx
字号:
<%@ Page language="c#" Codebehind="admin_Viewnews.aspx.cs" AutoEventWireup="false" Inherits="hellopet.WebForm2" %>
<%@ Register TagPrefix="uc1" TagName="foot" Src="foot.ascx" %>
<%@ Register TagPrefix="uc1" TagName="top" Src="top.ascx" %>
<%@ Register TagPrefix="uc1" TagName="control" Src="control.ascx" %>
<HTML>
<HEAD>
<title>admin_man</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<FONT face="宋体">
<TABLE id="Table1" borderColor="cornflowerblue" cellSpacing="0" cellPadding="1" width="824"
align="center" border="1">
<TR>
<TD align="center" vAlign="top" noWrap>
<uc1:top id="Top1" runat="server"></uc1:top></TD>
</TR>
<TR>
<TD align="center">
<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="824" align="center" border="0">
<TR>
<TD style="HEIGHT: 325px" width="168" vAlign="top">
<uc1:control id="Control1" runat="server"></uc1:control>
</TD>
<TD style="HEIGHT: 325px" vAlign="top">
<TABLE id="Table3" style="FONT-SIZE: 10pt" cellSpacing="0" cellPadding="0" width="100%"
border="0">
<TR>
<TD style="FONT-SIZE: 10pt; COLOR: white" align="center" bgColor="#7698dd" height="30">网站新闻浏览</TD>
</TR>
<TR>
<TD>
<asp:DataGrid id="DataGrid1" runat="server" PageSize="12" ForeColor="Black" GridLines="Vertical"
Font-Size="13px" AutoGenerateColumns="False" AllowPaging="True" CellPadding="4" BackColor="White"
BorderWidth="1px" BorderStyle="None" BorderColor="#DEDFDE" Width="656px" DataKeyField="topic">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#CE5D5A"></SelectedItemStyle>
<EditItemStyle HorizontalAlign="Center"></EditItemStyle>
<AlternatingItemStyle HorizontalAlign="Center" BackColor="Beige"></AlternatingItemStyle>
<ItemStyle HorizontalAlign="Center" BackColor="White"></ItemStyle>
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="White" BackColor="CornflowerBlue"></HeaderStyle>
<FooterStyle HorizontalAlign="Center" BackColor="#CCCC99"></FooterStyle>
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="topic" DataNavigateUrlFormatString="javascript:varwin=window.open('admin_details.aspx?ID={0}',null,'width=600,height=600');window.Close();"
DataTextField="topic" HeaderText="新闻标题">
<HeaderStyle Width="50%"></HeaderStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="addtime" HeaderText="添加时间">
<HeaderStyle Width="20%"></HeaderStyle>
</asp:BoundColumn>
<asp:ButtonColumn Text="删除" CommandName="Delete">
<HeaderStyle Width="15%"></HeaderStyle>
</asp:ButtonColumn>
</Columns>
<PagerStyle Visible="False" HorizontalAlign="Right" ForeColor="Black" BackColor="#F7F7DE" Mode="NumericPages"></PagerStyle>
</asp:DataGrid></TD>
</TR>
<TR>
<TD align="center">
<asp:Label id="lblPageCount" runat="server" ForeColor="Red">lblPageCount</asp:Label>
<asp:Label id="lblCurrentPage" runat="server" ForeColor="Red">lblCurrentPage</asp:Label>
<asp:LinkButton id="LinkButton1" runat="server" CommandArgument="first">第一页</asp:LinkButton>
<asp:LinkButton id="LinkButton2" runat="server" CommandArgument="last">最后一页</asp:LinkButton>
<asp:LinkButton id="LinkButton4" runat="server" CommandArgument="prev">上一页</asp:LinkButton>
<asp:LinkButton id="LinkButton3" runat="server" CommandArgument="next">下一页</asp:LinkButton></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD align="center">
<uc1:foot id="Foot1" runat="server"></uc1:foot>
</TD>
</TR>
</TABLE>
</FONT>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -