protected override void OnInit(EventArgs e)
{
base.OnInit(e);
// Check for customization parameters
ApplicationName = Request.Params["AppName"] ?? ImageServerConstants.DefaultApplicationName;
SplashScreenUrl = Request.Params["SplashScreenUrl"] ?? DefaultSplashScreenPath;
CssClassName = Request.Params["CssClassName"];
CustomCssUrl = Request.Params["CssUrl"];
if (!string.IsNullOrEmpty(CssClassName))
{
this.PageBody.Attributes["class"] += " " + CssClassName;
}
if (!string.IsNullOrEmpty(CustomCssUrl))
{
// include the custom css (this will append to the end of the list and will overwrite the default css)
var stylesheet = new HtmlLink { Href = CustomCssUrl };
stylesheet.Attributes.Add("rel", "stylesheet");
stylesheet.Attributes.Add("type", "text/css");
Page.Header.Controls.Add(stylesheet);
}
SetSplashScreen();
ForeachExtension<ILoginPageExtension>(ext => ext.OnLoginPageInit(this));
}