在asp.net中加载页面上的FullScreen浏览器

时间:2012-02-13 17:53:14

标签: asp.net browser

我用谷歌搜索了这个,但没有找到解决问题的方法。登录后我将以全屏模式打开页面,如在Mozilla和chrome中的F11模式中那样。

2 个答案:

答案 0 :(得分:1)

如果您想使用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);

答案 1 :(得分:0)

如果我没错,你不能在asp.net中制作全屏浏览器,你也可以这样做

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