You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
959 B

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="user_top_article.ascx.cs" Inherits="mywebcontrol_user_top_article" %>
<asp:Repeater ID ="new_article" runat =server DataSourceID ="user_new_article">
<ItemTemplate >
<li>
<a href ='<%# String.Format("~/show_detail.aspx?article_title={0}&article_id={1}",Eval("article_title"), Eval("id")) %>'>
<asp:Label ID="article_titleLabel" runat="server" Text='<%# Bind("article_title") %>'>
</asp:Label>
</a>
</li>
</ItemTemplate>
</asp:Repeater>
<asp:AccessDataSource ID="user_new_article" runat="server" DataFile="~/App_data/blog.mdb" SelectCommand="SELECT top 10 * FROM [article] WHERE ([author_name] = ?) ORDER BY [publish_date] DESC">
<SelectParameters>
<asp:SessionParameter Name="author_name" SessionField="user_name" Type="String" />