Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 打开新的一页?_C#_Asp.net - Fatal编程技术网

C# 打开新的一页?

C# 打开新的一页?,c#,asp.net,C#,Asp.net,在我的web应用程序中,当我单击我想打开一个新页面时,我有一个按钮,该页面的宽度应为220,高度应为300,请帮助我,谢谢。这将帮助您使用javascript实现这一点 这将帮助您使用javascript实现这一点 使用 创建新的辅助浏览器窗口 并加载引用的资源 使用 创建新的辅助浏览器窗口 并加载引用的资源 差不多 onclick="window.open('default.aspx','','height=300,width:220,scrollbars=yes,resizable=y

在我的web应用程序中,当我单击我想打开一个新页面时,我有一个按钮,该页面的宽度应为220,高度应为300,请帮助我,谢谢。

这将帮助您使用javascript实现这一点


这将帮助您使用javascript实现这一点

使用

创建新的辅助浏览器窗口 并加载引用的资源

使用

创建新的辅助浏览器窗口 并加载引用的资源

差不多

 onclick="window.open('default.aspx','','height=300,width:220,scrollbars=yes,resizable=yes,top=0,left=0,status=yes');"
差不多

 onclick="window.open('default.aspx','','height=300,width:220,scrollbars=yes,resizable=yes,top=0,left=0,status=yes');"

像这样的东西应该适合你

window.open(window.location.protocol + "//" + window.location.host + "/" + "standard asp.net relative URL including parameters", "_blank", "width=220, height=300, scrollbars=yes, resizable=yes, menubar=yes, location=no");

像这样的东西应该适合你

window.open(window.location.protocol + "//" + window.location.host + "/" + "standard asp.net relative URL including parameters", "_blank", "width=220, height=300, scrollbars=yes, resizable=yes, menubar=yes, location=no");