using System;
using System.Web;
using System.Web.Configuration;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
/// <summary>
/// Used as the base class for all ASP.NET Web Forms in the application
/// </summary>
public class AppPageBase : System.Web.UI.Page
{
//
// Constructors
//
/// <summary>
/// Creates a new instance of an AppPageBase object
/// </summary>
public AppPageBase() : base()
{
// Local Variables
// Begin
this.PreInit += new EventHandler(this.AppPageBase_PreInit);
}// end AppPageBase
//
// Event Handlers
//
/// <summary>
/// Event handler for the PreInit event of the Page
/// </summary>
private void AppPageBase_PreInit(object sender, System.EventArgs e)
{
// Local Variables
AppCookie ac = null;
// Begin
ac = new AppCookie();
if (ac.PreferredTheme != string.Empty && ac.PreferredTheme != "")
base.Theme = ac.PreferredTheme;
else
base.Theme = WebConfigurationManager.AppSettings["AppDefaultTheme"];
}// end AppPageBase_PreInit
//
// Methods
//
/* none */
//
// Properties
//
/* none */
}// end class AppPageBase