response.redirect和server.transfer之间的区别? [英] Difference between response.redirect and server.transfer?

查看:65
本文介绍了response.redirect和server.transfer之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

response.redirect和server.transfer有什么区别?我可以使用response.redirect转到另一个页面但不能使用server.transfer。

What is the difference between response.redirect and server.transfer?i am able to use response.redirect to go to another page but not able to use server.transfer.

推荐答案

http:// www .velocityreviews.com / forums / t107710 -washts-the-difference-response-redirect-and-server-transfer.html [ ^ ]



http://www.dotnetspider.com/ forum / 21599-Difference-between-Server-Transfer-Response-Redirect.aspx [ ^ ]



http://aspdotnetfaq.com/Faq/what-is-the-difference-between-server-transfer-and-response-redirect-methods.aspx [ ^ ]



如果通过谷歌搜索找到所有这些: response.redirect和server.transfer之间的区别
http://www.velocityreviews.com/forums/t107710-whats-the-difference-between-response-redirect-and-server-transfer.html[^]

http://www.dotnetspider.com/forum/21599-Difference-between-Server-Transfer-Response-Redirect.aspx[^]

http://aspdotnetfaq.com/Faq/what-is-the-difference-between-server-transfer-and-response-redirect-methods.aspx[^]

If found all of these with a google search: Difference between response.redirect and server.transfer


* Response.redirect用于在同一站点和多个站点的页面之间导航。

* Response.redirect本身不转移从一个页面到另一个页面的信息。

*它在外部使用Querystring来从一页另一页导航信息。



*这里如果您在导航到任何页面时看到Url已更改。



# Server.transfer仅用于在同一站点的页面之间导航。



#* Server.transfer本身将信息从一个页面传输到另一个页面。



#它在内部使用Querystring将信息从一个页面导航到另一个页面。





#如果您在导航到任何页面时看到Url未更改。
* Response.redirect is used to Navigate between the pages of same site & more than one site.
* Response.redirect itself not transfer the information from one page to another.
* It uses Querystring externally to navigate the information from one page another page.

* Here if you see while navigating to any page the Url is changed.

# Server.transfer is used to Navigate between the pages of same site only.

#* Server.transfer itself transfer the information from one page to another.

# It uses Querystring internally to navigate the information from one page to another with in the site.


# Here if you see while navigating to any page the Url is not changed.


看看这个 [ ^ ]

Have a look at this[^]

hope it helps :)


这篇关于response.redirect和server.transfer之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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