Pages

ASP.NET Clean page base

May 23, 2013
public class CleanPage : System.Web.UI.Page
{
public override string StyleSheetTheme
{
get { return ""; }
set { }
}

protected void Page_PreInit(object sender, EventArgs e)
{
this.EnableViewState = false;
this.ViewStateMode = System.Web.UI.ViewStateMode.Disabled;
this.Theme = "";
}

public CleanPage()
{
this.EnableTheming = false;
this.ViewStateEncryptionMode = System.Web.UI.ViewStateEncryptionMode.Never;
}

}