zxt.aspx

来自「一个简单的聊天代码」· ASPX 代码 · 共 55 行

ASPX
55
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="zxt.aspx.cs" Inherits="admin_zxt" %>

<!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>
	<style type="text/css">
<!--
table {
	font-size: 12px;
	font-weight: normal;
	color: #000000;
}
body {
	margin-top: 20px;
}
th {
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
}
-->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <asp:GridView ID="GridView1"  OnPageIndexChanging="GridView1_PageIndexChanging" 
        runat="server"  AllowPaging="True" PageSize="10"  AutoGenerateColumns="False" HorizontalAlign="Center" >
      <columns>
                <asp:BoundField DataField="id" HeaderText="序号" />
                <asp:BoundField DataField="name" HeaderText="作者" />
                <asp:BoundField DataField="title" HeaderText="标题" />
                <asp:BoundField DataField="leave" HeaderText="留言" />
                <asp:BoundField DataField="dtt" HeaderText="更新时间" />
                <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="zxt.aspx?id={0}"
                    HeaderText="删除" Text="删除" />
                <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="zxt_change.aspx?id={0}"
                    HeaderText="修改" Text="修改" />
            </Columns>
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?