Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 25th, 2004, 05:13 PM
Authorized User
 
Join Date: Aug 2004
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

 
Old October 25th, 2004, 08:59 PM
Friend of Wrox
 
Join Date: Nov 2003
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.
 
Old October 25th, 2004, 09:48 PM
Authorized User
 
Join Date: Aug 2004
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

 
Old October 26th, 2004, 04:44 PM
Friend of Wrox
 
Join Date: Jun 2003
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





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





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