BlogEngine添加自定义页面

by benben 6/24/2008 6:30:00 AM

有时候我们需要添加自定义的页面,而且要继承blog的主题风格。只需简单的3步,我们就可以做到这点。

  1. 添加BlogEngine.Core引用
  2. 将类继承自BlogEngine.Core.Web.Controls.BlogBasePage
  3. 前台需要输出的地方加入模板引用,代码如下:
    <asp:Content ID="Content1" ContentPlaceHolderID="cphBody" Runat="Server">
    呵呵,这里是需要添加的内容。
    </asp:Content>
(必填)
(必填,不会被公开)
谢谢留言,如果留言不成功请联系ben#119797.com

Powered by BlogEngine.NET 苏ICP备08023017号


Recent comments

Author