Response.Redirect的澄清 [英] clarification for Response.Redirect

查看:73
本文介绍了Response.Redirect的澄清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下情况有什么不同:



我正在重定向到同一页面。



1)当你在.aspx页面时,只传递同一页面的名称作为参数例如:Response.Redirect(abc.aspx) )。



2)当你在.aspx页面时,你将整个网址作为参数传递

例如:Response.Redirect(〜/ folder1 / folder2 / abc.aspx)。



提前致谢

Is there any difference in below scenarios:

I'm redirecting to the same page.

1) When you're in a .aspx page, and you pass only the name of the same page as a parameter Eg: Response.Redirect(abc.aspx).

2) When you're in a .aspx page, and you pass the Whole URL as a parameter
Eg: Response.Redirect(~/folder1/folder2/abc.aspx).

Thanks in advance

推荐答案

不,没有区别。它们指向相同的URL。
No, there is no difference. They point to the same url.


这篇关于Response.Redirect的澄清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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