asp.net auto redirect after 5 seconds

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello, how can i redirect the user to another page using code behing.. the
reason being is that i want to redirect them to different site based on the
user login...
i try to avoid client scriprt.. only code behing.. how can this be done?
 
Asha,
U can do response.redirect("page.aspx")
PAtrick
 
Asha said:
hello, how can i redirect the user to another page using code behing.. the
reason being is that i want to redirect them to different site based on the
user login...
i try to avoid client scriprt.. only code behing.. how can this be done?
You can use the META HTML tag to redirect the user. Below is an example:
<META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://www.monkey.biz/page.aspx">

The content attribute has the following form
"[NumberOfSecondsToWait];[RedirectionUrl]".

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
 

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