in asp.net (with VB) how can we redirect (in code Behind) our page to another one?
Asked
Active
Viewed 50 times
0
-
http://www.bing.com/search?q=asp.net+redirect – John Saunders Apr 17 '11 at 22:51
-
http://stackoverflow.com/questions/521527/response-redirect-vs-server-transfer :) – Lasse Espeholt Apr 17 '11 at 22:51
3 Answers
1
Using Response.Redirect.

Ry-
- 218,210
- 55
- 464
- 476
-
and if i make session variable.. i can use in the code behind of the WAthever page? – ThorDozer Apr 17 '11 at 22:52
0
Response.Redirect("newUrl.html")
To transfer the page w/o changing the browser's URL:
Server.Transfer("newUrl.html")

Arvin
- 1,210
- 2
- 15
- 18
-
But be careful with Server.Transfer as it will require Classic Pipeline mode instead of Integrated, that is default for IIS 6 and 7 – Dimitri Apr 17 '11 at 22:59