contentitempage.cs

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

CS
61
字号
namespace ASPNET.StarterKit.Communities {
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;




    public delegate ContentInfo GetContentItemDelegate(string username, int pageID);


    //*********************************************************************
    //
    // ContentItemPage Class
    //
    // The base class for all the content item pages. 
    // e.g., Article, Book, Event page
    //
    //*********************************************************************
    public abstract class ContentItemPage : SkinnedCommunityControl {

        
        public GetContentItemDelegate GetContentItem;

    
    
        //*********************************************************************
        //
        // SkinType Property
        //
        // The SkinType will always be ContentSkins
        //
        //*********************************************************************
        override protected string SkinType {
            get { return "ContentSkins"; }
        }


   
    
        //*********************************************************************
        //
        // InitializeSkin Method
        //
        // This method finds the ContentList control and uses the 
        // GetContentItems method to display values
        //
        //*********************************************************************
        override protected void InitializeSkin(Control skin) {
        }

        override protected void OnInit(EventArgs e) {
            ContentInfo _contentInfo = GetContentItem(objUserInfo.Username, objPageInfo.ID);
            Context.Items["ContentInfo"] = _contentInfo;
        }



    }
}

⌨️ 快捷键说明

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