Mohan
Mohan

Reputation: 969

FullScreen Browser on page load in asp.net

I googled this but didn't find working solution of the problem. After logging in I've to open page in FullScreen mode as in F11 mode in mozilla and chrome.

Upvotes: 0

Views: 7141

Answers (2)

Ravi Gadag
Ravi Gadag

Reputation: 15881

if i am not wrong, you cant make fullscreen browser in asp.net, you can do like this alternativiley

<asp:Button id="btnClick" runat="server" OnClientClick="window.open('yourUrl','', 'fullscreen=yes, scrollbars=auto');"/>

Upvotes: 0

TehBoyan
TehBoyan

Reputation: 6900

If you want to use javascript to accomplish this try adding this code after a user is logged in:

string script = "<script language=’JavaScript’> window.name = ‘windowname’;open(”, ‘windowname’); window.close();window.open(‘home.aspx’, ”, ‘fullscreen=yes,status=yes,scrollbars=yes,titlebar=no,addressbar=no’);</script>";

ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), “PopupScript”, script, false);

Upvotes: 1

Related Questions