ASP.NET Clean page base

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;
}

}

Popular posts from this blog

Google Map 多點路線規劃

Oppo R9 Turn on/off developer mode

解決瀏覽器無法下載檔案