[英]ASP.NET Redirection
我目前正在使用重定向网页
Response.Redirect("URL");
这很好用,但是它也会更改URL。 例如:
http://localhost/index.aspx
重定向到:test.aspx会将URL更改为:
http://localhost/test.aspx
是否可以在不更改URL的情况下重定向内容 ?...因此,网址为:
http://localhost/test.aspx
但是内容将被重定向到
test.aspx
谢谢。
使用Server.Transfer这将显示default.aspx页的内容,但不会更改url
Server.Transfer("Default.aspx");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.