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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top