asp.net中页面加载的全屏浏览器

asp.net中页面加载的全屏浏览器,asp.net,browser,Asp.net,Browser,我在谷歌上搜索了一下,但没有找到解决问题的有效方法。登录后,我必须以全屏模式打开页面,就像mozilla和chrome中的F11模式一样。如果我没有错,您不能在asp.net中使用全屏浏览器,您也可以这样做 <asp:Button id="btnClick" runat="server" OnClientClick="window.open('yourUrl','', 'fullscreen=yes, scrollbars=auto');"/> 如果要使用javascript完成此

我在谷歌上搜索了一下,但没有找到解决问题的有效方法。登录后,我必须以全屏模式打开页面,就像mozilla和chrome中的F11模式一样。

如果我没有错,您不能在asp.net中使用全屏浏览器,您也可以这样做

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

如果要使用javascript完成此操作,请尝试在用户登录后添加此代码:

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);
string script=“window.name='windowname';open(,'windowname');window.close();window.open('home.aspx',“,'fullscreen=yes,status=yes,scrollbars=yes,titlebar=no,addressbar=no');”;
ScriptManager.RegisterStartupScript(this.Page,Page.GetType(),“PopupScript”,script,false);