Hi.,
Following Code Will help for, Open any page as full screen Page.
And it will avoid same page opens multiple Times
Sample Code
protected void FullScreenMode()
{
StringBuilder FullScreenScript = new StringBuilder();
//Check the name of the opened window in order to avoid of window re-open over and over again...
FullScreenScript.Append("if(this.name != 'InFullScreen')");
FullScreenScript.Append("{" + Environment.NewLine);
FullScreenScript.Append("window.open(window.location.href,'InFullScreen','fullscreen=yes,menubar=yes,toolbar=yes,status=yes,scrollbars=auto');" + Environment.NewLine);
FullScreenScript.Append("}");
this.ClientScript.RegisterStartupScript(this.GetType(), "InFullScreen", FullScreenScript.ToString(), true);
}
No comments:
Post a Comment