⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 新建 文本文档 (15).txt

📁 对页面文件很有用处
💻 TXT
字号:
1<%...@ Page Language="C#" AutoEventWireup="true" CodeFile="news_manage2.aspx.cs" Inherits="news_manage2" %>
 2
 3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 4
 5<html xmlns="http://www.w3.org/1999/xhtml" >
 6<head runat="server">
 7    <title>无标题页</title>
 8</head>
 9<body>
10    <form id="form1" runat="server">
11    <div>
12        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
13            CellPadding="4" DataKeyNames="news_id" ForeColor="#333333" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
14            OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting"
15            OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" PageSize="3"
16            Width="502px">
17            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
18            <Columns>
19                <asp:BoundField DataField="news_id" HeaderText="编号" ReadOnly="True" />
20                <asp:TemplateField HeaderText="标题">
21                    <EditItemTemplate>
22                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("news_title") %>'></asp:TextBox>
23                    </EditItemTemplate>
24                    <ItemTemplate>
25                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("news_title") %>'></asp:Label>
26                    </ItemTemplate>
27                </asp:TemplateField>
28                <asp:TemplateField HeaderText="作者">
29                    <EditItemTemplate>
30                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("news_author") %>'></asp:TextBox>
31                    </EditItemTemplate>
32                    <ItemTemplate>
33                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("news_author") %>'></asp:Label>
34                    </ItemTemplate>
35                </asp:TemplateField>
36                <asp:TemplateField HeaderText="来源">
37                    <EditItemTemplate>
38                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval("news_ly") %>'></asp:TextBox>
39                    </EditItemTemplate>
40                    <ItemTemplate>
41                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("news_ly") %>'></asp:Label>
42                    </ItemTemplate>
43                </asp:TemplateField>
44                <asp:BoundField DataField="news_adddate" HeaderText="发布时间" ReadOnly="True" />
45                <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
46                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
47            </Columns>
48            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
49            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
50            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
51            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
52            <AlternatingRowStyle BackColor="White" />
53        </asp:GridView>
54    
55    </div>
56    </form>
57</body>
58</html>

⌨️ 快捷键说明

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