<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="news.aspx.cs" Inherits="LoveWeb.Admin.newsManager" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
    
        <div id=thanks1>
       <h1>详细新闻列表</h1>
       <table width="600"><tr><td class="xxxwlb_bt"><h5>新闻标题</h5></td> <td class="xxxwlb_bt2"><h5>发布时间</h5></td></tr></table>
    <asp:DataList ID="DataList1" runat="server" style="text-align: left" 
                CssClass="zitidaxiao">
            <ItemTemplate>
                <table width="650">
                
                    <tr align="left">
                        <td id="left">
                    <a href="NewsView.aspx?id=<%# Eval("newsid") %>"><%# GetPartString(Eval("title").ToString(),20)%>
</span></a>                        </td>
                        <td align="right">
                           <span><%# Eval("newstime") %></span>                        </td>
                    </tr>
                </table>
        </ItemTemplate>
        </asp:DataList>
    </div>
    
        
        <asp:ObjectDataSource ID="odsNews" runat="server" SelectMethod="GetAllNews" 
            TypeName="LoveBLL.NewsManager" DataObjectTypeName="Models.News" 
            DeleteMethod="DelNews" InsertMethod="AddNews" UpdateMethod="UpdateNews"></asp:ObjectDataSource>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" 
            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" 
            onpagechanged="AspNetPager1_PageChanged" PrevPageText="上一页" 
            CssClass="paginator" CurrentPageButtonClass="cpb">
        </webdiyer:AspNetPager>
    </div>
    

</asp:Content>
