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

📄 moderatesection.cs

📁 ASP开发网站的 关于网站的设计和说明 还有SQL的程序 数据库
💻 CS
字号:
namespace ASPNET.StarterKit.Communities.Moderation {

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


    //*********************************************************************
    //
    // ModerationSection Class
    //
    // Represents the default page for the Articles section. This class 
    // displays a list of article listings.
    //
    //  _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 ModerateSection : ContentListPage {
    
        string _skinFileName = "Moderation_ModerateSection.ascx";

        GetContentItemsDelegate _getContentItems = new GetContentItemsDelegate(ModerationUtility.GetContent);
        

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

        public ModerateSection() : base() {
            SkinFileName = _skinFileName;
            GetContentItems = _getContentItems;
            TotalRecords = ModerationUtility.GetTotalRecords(objSectionInfo.ID);

            // Check Moderation Security
            if (!objUserInfo.MayModerate)
                CommunityGlobals.ForceLogin();
        }








    }
}

⌨️ 快捷键说明

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