是否可以在asp .net web表单中重新加载相同的页面位置和大小 [英] Is it possible to reload same page position and size in asp .net web form

查看:117
本文介绍了是否可以在asp .net web表单中重新加载相同的页面位置和大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试创建一个Web Base应用程序,我想重新加载一个与关闭之前具有相同大小和位置的Web表单。这可能用asp .net吗?



谢谢!

Hi,

I am trying to do a Web Base Application and I wanted to reload a web form that has its same size and location as before it was closed. Is this possible with asp .net?

Thank You!

推荐答案

页面没有位置和大小;这是Web浏览器窗口的属性。



这样的事情是可能的,但我不推荐它。它们与ASP.NET无关。这都是关于Javascript的。请参阅:

http://www.w3schools.com/jsref/met_win_open.asp [ ^ ],

http://www.w3schools.com/jsref/obj_window.asp [ ^ ],

http://www.w3schools.com/jsref/met_win_resizeby.asp [ ^ ],

http://www.w3schools.com/jsref/met_win_resizeto.asp [ ^ ],

http:// www。 w3schools.com/jsref/met_win_moveby.asp [ ^ ],

http://www.w3schools.com/jsref/met_win_moveto.asp [ ^ ]。



请注意,如果你创建一个新的窗口对象,你可以在以后修改你的尺寸/位置。



为什么这样东西不好处理?首先,随着标签的出现(非常好),一般情况下,您不知道页面的窗口是什么。它可以是标签页。即使你 window.open (在某些情况下本身不推荐,因为用户通常不喜欢弹出窗口),你实际上可以创建一个单独的窗口,或者标签。这取决于呼叫的参数;结果可能取决于浏览器(无论如何,我从来没有听说过这方面的标准化甚至是文件记录)。



这真是一个好主意将窗口或标签的位置留给用户。



-SA
A page does not have position and size; this is the attribute of the Web browser window.

Such things are possible, but I would not recommend it. And they are not related to ASP.NET. This is all about Javascript. Please see:
http://www.w3schools.com/jsref/met_win_open.asp[^],
http://www.w3schools.com/jsref/obj_window.asp[^],
http://www.w3schools.com/jsref/met_win_resizeby.asp[^],
http://www.w3schools.com/jsref/met_win_resizeto.asp[^],
http://www.w3schools.com/jsref/met_win_moveby.asp[^],
http://www.w3schools.com/jsref/met_win_moveto.asp[^].

Note that you can return a window object if you create a new one any modify your size/location later.

Why this stuff is not good to deal with? First of all, with the advent of tabs (which are very good), in general case, you don't know what is the window of your page. It could be a tab page. Even if you window.open (which is itself not recommended some cases, because the users usually don't like popups), you can actually create either a separate window, or a tab. It depends on the parameters of the call; and the result probably depends on the browser (anyway, I never heard that this aspect was ever standardized or even documented).

This is really a good idea to leave the location of the window or a tab to the user.

—SA

这篇关于是否可以在asp .net web表单中重新加载相同的页面位置和大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆