Response.Redirect

  • Thread starter Thread starter royal
  • Start date Start date
R

royal

Hi,

I'm using response.redirect in C# to route from one screen
to another screen. Is there any other method beside using
response.redirect?
 
server.Transfer will cause the code in the transferred to page to run, but
the browser remains at the original page.

<META HTTP-EQUIV="Refresh" CONTENT="nSeconds"> is an HTML way to redirect
after a certain amount of seconds have elapsed.

window.location = "url" is a JavaScript way to do it.
 
In addition to what Scott said, in the Global.asax, you can grab a request
as it comes in and use RewriteUrl to internally rewrite the url (Great for
translating things like /something/myarticle.aspx to /content?myarticle).

-mike
MVP
 
Back
Top