What's the best way to redirect a webpage? I'm using asp.net
|
1
1
|
|
|
|
|
2
|
This depends on what you are looking to do. If you want to redirect to a local page without displaying the NEW page's name in the url string, you can use Server.Transfer("~/mynewpage.aspx") If you want to just to simply transfer them to a new page you can use Response.Redirect("~/mynewpage.aspx") However if you need to do a permanent redirect... similar to what url shorteners use, you'll want to be a bit more advanced...
|
|||
|
|
2
|
response.redirect("http://ww.google.com"); |
||
|
|
|
1
|
For very very simple, static redirections, there's always the
tag in the |
||
|
|

