[英]ASP.NET Redirection
I'm currently redirecting a page using 我目前正在使用重定向网页
Response.Redirect("URL");
this works great, however it changes the url too. 这很好用,但是它也会更改URL。 For example: 例如:
http://localhost/index.aspx
Redirected to: test.aspx will change the url to: 重定向到:test.aspx会将URL更改为:
http://localhost/test.aspx
Is it possbile to redirect the content without changing the URL?... so the Url will be: 是否可以在不更改URL的情况下重定向内容 ?...因此,网址为:
http://localhost/test.aspx
BUT the content would of been redirected to 但是内容将被重定向到
test.aspx
Thank you. 谢谢。
使用Server.Transfer这将显示default.aspx页的内容,但不会更改url
Server.Transfer("Default.aspx");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.