Sometimes, we may have a requirement to open the asp.net application developed, to be opened in full screen mode. To accomplish this, below is the code, in login page, after verifying credentials we redirect user to home page.
StringBuilder popupScript = new StringBuilder();
ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), “PopupScript”, popupScript.ToString(), false);
On Logout, you can write the same script with fullscreen = no
It will by pass the message prompted
“The Web page you are viewing is trying to close the window” Do you want to close this window?
- 270,532 hits
|Bhavesh Patel on Limiting the number of records…|
|Sumant on Validating Extension(eg. (.asp…|
|Gingsen on Limiting the number of records…|
|praveenkumar on Listbox select all using check…|
|asif on Limiting the number of records…|
- Solving Calendar Extender Problem in Modal Popup Extender Asp.net
- Limiting the number of records to be displayed in Crystal Report
- Free Admin Templates For Web Applications
- Adding eWorld.UI (Excentrics World) Calendar Popup, TimePicker.. etc in Asp.net