📄 delnews.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="delnews.aspx.cs" Inherits="delnews" %>
<!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 runat="server">
<title>新闻网站管理</title>
</head>
<body style="text-align:center">
<form id="form1" runat="server">
<div style="text-align: center"><h2 align="center"><font color="red">新闻网站自动发布-管理</font></h2>
<br />
<table width="90%" align="center" border="0">
<tr>
<td width="608" style="height: 3px">
<div align="center" style="text-align: center">请选择新闻类型:<asp:DropDownList ID="ddlType" runat="server">
</asp:DropDownList>
<asp:Button ID="btnConfrim" runat="server" Text="确 定" OnClick="btnConfrim_Click" /></div>
</td>
</tr>
<tr>
<td width="608">
<div align="center" style="text-align: center">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="2" CellSpacing="1" EnableViewState="False" Font-Names="宋体" GridLines="None" Width="500px" DataKeyNames="ID" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting" PageSize="2">
<Columns>
<asp:BoundField DataField="shijian" HeaderText="时间" >
<ItemStyle Width="150px" />
</asp:BoundField>
<asp:TemplateField HeaderText="标题">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" Text='<%# Eval("biaoti") %>' NavigateUrl='<%# "xiu.aspx?id="+Eval("id") %>'
runat="server" />
</ItemTemplate>
<ItemStyle Width="400px" />
</asp:TemplateField>
<asp:CommandField ShowDeleteButton="True" >
<ItemStyle Width="100px" />
</asp:CommandField>
</Columns>
<PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast" NextPageText="下一页" PreviousPageText="上一页" />
<PagerStyle HorizontalAlign="Center" />
</asp:GridView>
<i>
您现在浏览的页面是
<%=GridView1.PageIndex+1%>
/
<%=GridView1.PageCount%>
</i>
</div>
</td>
</tr>
<tr>
<td width="608">
<div align="center" style="text-align: center">
新闻搜索:<asp:TextBox ID="txtSou_suo" runat="server"></asp:TextBox> <asp:DropDownList
ID="ddlContents" runat="server">
<asp:ListItem Value="zuozhe">按作者查找</asp:ListItem>
<asp:ListItem Value="biaoti">按主题查找</asp:ListItem>
<asp:ListItem Value="neirong">按内容查找</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="btnZhao" runat="server" Text="查 找" Height="19px" Width="70px" OnClick="btnZhao_Click" /></div>
</td>
</tr>
<tr>
<td width="608">
<div align="center" style="text-align: center">
<asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label> </div>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -