📄 contentitempage.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -