简体   繁体   中英

how to hide URL of pages when Redirect from one page to another in asp.net

I want to hide the URL of page when I redirect from one page to another. How can I do this except by using server.transfer method. I urgently need it. Please give me solution soon. I am using Asp.net, C#

You can use IFrame to show the new URL. For example, Create a page a.aspx with an iFrame in it. on the code behind set the source property of the IFrame to the new URL which you want to redirect to.

you can use

Server.Transfer

If you have send the request from "form1.aspx" redirect to "form2.aspx". On the browser url will still "form1.aspx"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM