add a new page, need help appying the theme to that page

Topics: ASP.NET 2.0, Themes
Feb 25, 2008 at 4:30 AM
I add a new page "About us" and I want the theme "leaves" to be added: what code i'm suppose to use, I'm new I've been follwing all the videos, but this one I really need help with.. thank you
Feb 25, 2008 at 1:45 PM
i had a similar problem recently I think...If this is your own static page you've built and not one via the Pages admin area, then you need to inherit from BlogEngine.Web.BasePage ( think thats the right class)
Feb 26, 2008 at 4:00 AM
thanks for your feed back: but i know i need more help i did this both way as a static page and also via the pages admin... still aint working. I'm new at this so is there a step by step procedure u can help with thank you
Feb 26, 2008 at 5:15 PM
1. Add a new ASP.NET Web Form (Website -> Add New Item -> Web Form)

2. View the code behind file and change the base class from Page to BlogBasePage. Be sure to add the following Using declarations:
using BlogEngine.Core;
using BlogEngine.Core.Web.Controls;

3. In the aspx file, add a content place holder. This must be called "cphBody".
<asp:Content ID="Content1" ContentPlaceHolderID="cphBody" Runat="Server">
// add whatever you want here.
</asp:Content>

4. Add whatever content you want between the content place holder.

Hope this helps.

Jeff
http://www.buzzmyblog.com