⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 discusssection.cs

📁 一个ASP.NET下的中文内容管理和社区系统
💻 CS
字号:
namespace ASPNET.StarterKit.Communities.Discuss {

    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using ASPNET.StarterKit.Communities;


    //*********************************************************************
    //
    // DiscussSection Class
    //
    // Represents the default page for the Discuss section. This class 
    // displays a list of threads.
    //
    //  _skinFileName = the name of the skin to use for this section
    //
    //  _getContentItems = the name of the method that retrieves the list of content items 
    //
    //*********************************************************************

    public class DiscussSection : ContentListPage {
    
        string _skinFileName = "Discuss_DiscussSection.ascx";


        override protected void BindContent() {
            objContentList.DataSource = DiscussUtility.GetPosts(objUserInfo.Username, objSectionInfo.ID, objSectionInfo.RecordsPerPage, objContentList.CurrentPage, "Date Commented DESC");
            objContentList.DataBind();
        }

        

        //*********************************************************************
        //
        // DiscussSection Constructor
        //
        // Assigns skin and contentItems method to base ContentListPage class
        //
        //*********************************************************************

        public DiscussSection() : base() {
            SkinFileName = _skinFileName;
        }




    }
}

⌨️ 快捷键说明

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