discuss_discusssection.ascx

来自「ASP开发网站的 关于网站的设计和说明 还有SQL的程序 数据库」· ASCX 代码 · 共 55 行

ASCX
55
字号
<%@ Control Language="C#" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<community:SectionTitle CssClass="ArticleSection_SectionTitle" runat="Server"/>
<br />
<community:PageHeader runat="Server" />
<div align="right">
<community:Notify Text="Notify me of new threads" runat="Server" />
</div>
<p>
<community:AddContent Text="New Thread" ImageUrl="~/Communities/Common/Images/Discuss/NewThread.gif" NavigateUrl="Discuss_AddPost.aspx" Runat="Server"/>
</p>
<community:ContentList id="ContentList" width="100%" runat="Server">
    <HeaderTemplate>
    <table width="100%" class="discussTable" cellspacing="1">
    <tr>
        <th colspan="2" nowrap="nowrap">Thread</th>    
        <th nowrap="nowrap">Started By</th>
        <th nowrap="nowrap">Replies</th>
        <th nowrap="nowrap">Views</th>
        <th nowrap="nowrap">Last Post</th>
    </tr>
    </HeaderTemplate>
    
    <ItemTemplate>
    <tr>
        <td class="discussCell"><community:ItemDiscussIcon PopularCount="40" runat="Server"/></td>
        <td class="discussCell"><community:ItemTitleLink runat="Server"/></td>
        <td class="discussCellHiLite"><community:ItemAuthor runat="Server"/></td>
        <td class="discussCellHiLite"><community:ItemCommentCount runat="Server"/></td>
        <td class="discussCellHiLite"><community:ItemViewCount runat="Server"/></td>
        <td class="discussCellHiLite" align="center">
            <community:ItemDiscussPinnedPost text="Pinned Post" runat="Server" />
            <community:ItemDiscussDateCommented dateformatstring="{0:g}" DisplayTimeZone="true" runat="Server"/>
            <br />by <community:ItemDiscussLastCommentUsername runat="Server" />
        </td>
    </tr>
    </ItemTemplate>
    
    <FooterTemplate>
    </table>
    </FooterTemplate>
    
    <NoContentTemplate>
        There are currently no posts.
    </NoContentTemplate>
</community:ContentList>



<community:PageFooter runat="Server" />

<p>
<span class="Content"><community:DiscussEditContent AddText="New Thread" ModerateText="Moderate Posts" Runat="Server" /></span>
</p>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?