<%@ Control Language="c#" AutoEventWireup="true" Codebehind="PdtNews.ascx.cs" Inherits="XpShop.WebUI.Modules.PdtNews" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%--调用方一,根据新闻类别ID调新闻--%>
<%BindPdtNews(2, 8, "rptPdtNews");%>
<ul>
    <asp:Repeater ID="rptPdtNews" runat="server">
        <ItemTemplate>
            <li><a href='<%=webSite %>articles/news-<%#DataBinder.Eval(Container.DataItem,"ArticleID")%>.<%=config.html%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"Title")%></a></li>
        </ItemTemplate>
    </asp:Repeater>
</ul>

<%--调用方法二,根据商品分类ID调新闻--%>
<%--<%BindNewsByPdtCatID(49, 8, "rptPdtNews");%>
<ul>
    <asp:Repeater ID="rptPdtNews" runat="server">
        <ItemTemplate>
            <li><a href='<%=webSite %>articles/news-<%#DataBinder.Eval(Container.DataItem,"ArticleID")%>.<%=config.html%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"Title")%></a></li>
        </ItemTemplate>
    </asp:Repeater>
</ul>--%>