<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Main.Master" AutoEventWireup="true" EnableViewState="false" CodeBehind="List.aspx.cs" Inherits="MyCms.Page.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="path"><a href="">首页</a> > <%=path %></div>
    <div class="news">
    <asp:Repeater ID="rpList" runat="server">
        <ItemTemplate>
            <div class="news_li">
                    <h2 class="top"><a href="<%#ResolveUrl("~/Page/Content.aspx?id="+Eval("ArticleID")) %>"><%#Eval("Title") %></a></h2>
                    <div class="count"><a href="<%#ResolveUrl("~/Page/List.aspx?t=")+Eval("CategoryID") %>"><%#Eval("Category.CategoryName") %></a> <a href="javascript:;"><%#Eval("Keywords") %></a> <a href="<%#ResolveUrl("~/Page/Content.aspx?id="+Eval("ArticleID")) %>">阅读全文 <%#Eval("ReadCount") %></a></div>
                    <div class="date"><%#Convert.ToDateTime(Eval("CreateTime")).ToString("yyyy-MM-dd") %></div>
                    <div class="description">
                        <%#(Eval("CoverImg")==null||Eval("CoverImg")==string.Empty)?string.Empty:"<div class=\"coverimg\"><img src=\""+Eval("CoverImg")+"\" /></div>" %>
                        
                        <div <%#(Eval("CoverImg")==null||Eval("CoverImg")==string.Empty)?string.Empty:"class=\"descriptiontxt\"" %> >
                            <p><%#Eval("Description") %></p>
                        </div>
                        <div style="clear:both"></div> 
                    </div>
                </div>
        </ItemTemplate>
    </asp:Repeater>
    </div>
    <%=pageStr %>
</asp:Content>
