Thursday, April 15, 2010

Applying Themes and Changing MaterPages

///
/// Summary description for BaseClass
///
public class BaseClass : System.Web.UI.Page
{
public BaseClass()
{
//
// TODO: Add constructor logic here
//
}
protected void Page_PreInit(object sender, EventArgs e)
{
// Settnig MasterPage to all pages inherited from BaseClass
Page.MasterPageFile = "~/MasterPages/Black.master";

// Applying Themes
Page.Theme = "Black";
}

}

No comments: