pageheader.cs
来自「C#邮件代码库,用于邮件发送」· CS 代码 · 共 43 行
CS
43 行
namespace ASPNET.StarterKit.Communities {
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
//*********************************************************************
//
// PageHeader Class
//
// Represents a page header
//
//*********************************************************************
[Designer(typeof(ASPNET.StarterKit.Communities.CommunityDesigner))]
public class PageHeader : WebControl {
//SMR - Enh - Added constructor to assign the default class same as SectionTitle.cs
public PageHeader() : base()
{
CssClass = "PageHeader";
}
//*********************************************************************
//
// RenderContents Method
//
// Display content by retrieving content from context
//
//*********************************************************************
override protected void RenderContents(HtmlTextWriter writer) {
// Get SectionInfo object
SectionInfo objSectionInfo = (SectionInfo)Context.Items["SectionInfo"];
// Write header
writer.Write(objSectionInfo.PageHeader);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?