0

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

John Saunders
  • 160,644
  • 26
  • 247
  • 397
ThorDozer
  • 104
  • 2
  • 12

3 Answers3

1

Response.Redirect("/WhateverUrl.aspx")

Dimitri
  • 6,923
  • 4
  • 35
  • 49
1

Using Response.Redirect.

Ry-
  • 218,210
  • 55
  • 464
  • 476
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