Server.Transfer的()比。使用Server.Execute() [英] Server.Transfer() Vs. Server.Execute()

查看:117
本文介绍了Server.Transfer的()比。使用Server.Execute()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IM具有哪一个更好或效果调用页面(第一页)和来电页面(新页)...

im having confusion with which one is better or effect for request of calling page(first page) and caller page (new page) ...

我注意到,在这两种情况下,在浏览器的URL仍然在第一页的URL(不刷新到新的页面URL)的浏览器没有要求这样做。

i notice that In both the cases, the URL in the browser remains the first page URL (doesn’t refresh to the new page URL) as the browser isn’t requested to do so.

任何意见AP preciable ....

any comments appreciable ....

推荐答案

在一部开拓创新:<一href=\"http://www.dotnetspider.com/forum/144239-Difference-between-Server-Transfer-Server-Execute.aspx\">Difference Server.Transfer的和使用Server.Execute 之间

两者的Server.Transfer和使用Server.Execute经典ASP 3.0中引入(现在仍然在ASP.NET工作)。

Both Server.Transfer and Server.Execute were introduced in Classic ASP 3.0 (and still work in ASP.NET).

当使用使用Server.Execute,一个URL被传递给它作为一个参数,并且控制转移到这个新的页面。 code的执行发生在新页面上。一旦code执行越过,控制返回到初始页面,只是后它被调用。然而,在Server.Transfer的的情况下,它的工作方式非常相同,区别在于执行停止在新页面本身(装置控制is'nt返回到调用页)。

When Server.Execute is used, a URL is passed to it as a parameter, and the control moves to this new page. Execution of code happens on the new page. Once code execution gets over, the control returns to the initial page, just after where it was called. However, in the case of Server.Transfer, it works very much the same, the difference being the execution stops at the new page itself (means the control is'nt returned to the calling page).

在这两种情况下,在浏览器的URL仍然在第一页的URL(一点儿也不刷新到新的页面URL)的浏览器is'nt要求这样做。

In both the cases, the URL in the browser remains the first page url (does'nt refresh to the new page URL) as the browser is'nt requested to do so.

这篇关于Server.Transfer的()比。使用Server.Execute()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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