<%@ Page Language="C#" AutoEventWireup="true" CodeFile="news.aspx.cs" Inherits="news" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>企业网站新闻</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="gdvnews" runat="server" AutoGenerateColumns="False" GridLines="None" AllowPaging="True" onpageindexchanging="gdvnews_PageIndexChanging" onrowdatabound="gdvnews_RowDataBound" PageSize="6">
            <RowStyle Height="26px" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="标     题">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("nid", "newdetail.aspx?nid={0}") %>' Text='<%# Eval("ntitle") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ndate" DataFormatString="{0:yy-MM-dd}" HeaderText="发布日期" />
            </Columns>
            <PagerStyle HorizontalAlign="Center" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
