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
982 B

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="user_top_comment.ascx.cs" Inherits="mywebcontrol_user_top_comment" %>
<asp:Repeater ID ="new_comment" runat =server DataSourceID ="user_new_comment">
<ItemTemplate >
<li>
<a href ='<%# String.Format("~/show_article_type.aspx?methord=comment_search&id={0}",Eval("ID")) %>'>
<asp:Label ID="article_titleLabel" runat="server" Text='<%# String.Format("RE:{0}",Eval("article_title")) %>'>
</asp:Label>
</a>
</li>
</ItemTemplate>
</asp:Repeater>
<asp:AccessDataSource ID="user_new_comment" runat="server" DataFile="~/App_data/blog.mdb" SelectCommand="SELECT top 10 * FROM [user_new_comment] WHERE ([author_name] = ?)">
<SelectParameters>
<asp:SessionParameter Name="author_name" SessionField="user_name" Type="String" />
</SelectParameters>