📄 admin_class.aspx
字号:
<%@ Page Language="c#" Inherits="WebNews.admin.admin_class" CodeBehind="admin_class.aspx.cs" AutoEventWireup="false" %>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../style.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<div align="center"><asp:label id="myLabel" runat="server" width="100%"></asp:label></div>
<form id="myForm" runat="server">
<div align="right"><ASP:DATAGRID id="MyDataGrid" runat="server" PageSize="20" OnDeleteCommand="MyDataGrid_DeleteCommand" OnUpdateCommand="MyDataGrid_UpdateCommand" OnCancelCommand="MyDataGrid_CancelCommand" OnEditCommand="MyDataGrid_EditCommand" OnSelectedIndexChanged=" MyDataGrid_SelectedIndexChanged" ItemStyle-CssClass="tdbg" HeaderStyle-CssClass="title" CssClass="border" AutoGenerateColumns="False" AllowPaging="True" CellPadding="3" Align="center" Width="592px" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" BackColor="White" DataKeyField="classId">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<EditItemStyle CssClass="title2"></EditItemStyle>
<ItemStyle ForeColor="#000066" CssClass="tdbg"></ItemStyle>
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Height="25px" ForeColor="White" CssClass="title" BackColor="#006699"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更改" CancelText="取消" EditText="修改">
<ItemStyle HorizontalAlign="Center" Width="70px"></ItemStyle>
</asp:EditCommandColumn>
<asp:TemplateColumn HeaderText="分类名">
<ItemTemplate>
<FONT face="宋体">
<%#show(DataBinder.Eval(Container.DataItem,"className"))%>
</FONT>
</ItemTemplate>
<EditItemTemplate>
<FONT face="宋体">
<asp:TextBox id="TextBox1" text='<%#show(DataBinder.Eval(Container.DataItem,"className"))%>' runat="server">
</asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="*请输入分类名!" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</FONT>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="ArticleNums" ReadOnly="True" HeaderText="新闻数">
<ItemStyle HorizontalAlign="Center" Width="70px"></ItemStyle>
</asp:BoundColumn>
<asp:ButtonColumn Text="删除" CommandName="Delete">
<ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
</asp:ButtonColumn>
</Columns>
<PagerStyle Visible="False" HorizontalAlign="Right" ForeColor="#000066" BackColor="White" PageButtonCount="3" Wrap="False" Mode="NumericPages"></PagerStyle>
</ASP:DATAGRID>
<table width="610" align="center">
<tr>
<td width="341">
<div align="left"><asp:linkbutton id="btnFirst" onclick="PagerButtonClick" runat="server" Font-Bold="True" ForeColor="HotTrack" CommandArgument="first">首页||</asp:linkbutton><asp:linkbutton id="LinkButton2" onclick="PagerButtonClick" runat="server" Font-Bold="True" ForeColor="HotTrack" CommandArgument="prev">前页||</asp:linkbutton><asp:linkbutton id="LinkButton1" onclick="PagerButtonClick" runat="server" Font-Bold="True" ForeColor="HotTrack" CommandArgument="next" Font-Size="X-Small">下页||</asp:linkbutton><asp:linkbutton id="LinkButton3" onclick="PagerButtonClick" runat="server" Font-Bold="True" ForeColor="HotTrack" CommandArgument="last">尾页</asp:linkbutton></div>
</td>
<td width="239">
<div align="right"><asp:label id="lblCurrentIndex" runat="server" Font-Bold="True" ForeColor="HotTrack"></asp:label><asp:label id="lblPageCount" runat="server" Font-Bold="True" ForeColor="HotTrack"></asp:label></div>
</td>
</tr>
</table>
</form>
</DIV>
<!--#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 + -