0

in asp.net (with VB) how can we redirect (in code Behind) our page to another one?

John Saunders
  • 159,224
  • 26
  • 237
  • 393
ThorDozer
  • 102
  • 2
  • 12

3 Answers3

1

Response.Redirect("/WhateverUrl.aspx")

Dimitri
  • 6,803
  • 4
  • 32
  • 49
1

Using Response.Redirect.

Ry-
  • 209,133
  • 54
  • 439
  • 449
0
Response.Redirect("newUrl.html")

To transfer the page w/o changing the browser's URL:

Server.Transfer("newUrl.html")
Arvin
  • 1,102
  • 2
  • 12
  • 17
  • 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