Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 25th, 2004, 05:13 PM
Authorized User
 
Join Date: Aug 2004
Location: , , .
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default redirect after 2 seconds

Hello,

 Anybody knows how to redirect the browser to another page from 5 seconds.

 I used the Reponse.Redirect(url) method but I really need to redirect after a number of seconds.
Thanks,
Marenela

  #2 (permalink)  
Old October 25th, 2004, 08:59 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Write this to the page:

<meta http-equiv='refresh' content='5;url=your_next_page.aspx'/>

HTH!

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.
  #3 (permalink)  
Old October 25th, 2004, 09:48 PM
Authorized User
 
Join Date: Aug 2004
Location: , , .
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No I"m sorry I wasnt clear.

I want it to run in a click event of a button in an ASP.NET page
Thanks,
Marenela

  #4 (permalink)  
Old October 26th, 2004, 04:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Then use meta tag by writing it to the browser using RegisterStartupScript from your code-behind. I'm doing this after the user submits a message using the "Contact Us" form. I send him back to the main page.

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
to add three seconds MunishBhatia C# 2005 2 October 9th, 2007 07:29 AM
wait for seconds pzmrcd C# 1 August 1st, 2007 02:06 PM
seconds-from-duration outspaced XSLT 2 April 3rd, 2007 08:51 AM
Converting Seconds into Nano seconds and viceversa chandu80 General .NET 0 June 4th, 2005 01:18 AM
seconds missing in getdate() stufflebeem SQL Server 2000 1 October 24th, 2003 04:52 PM



All times are GMT -4. The time now is 09:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.