Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 December 7th, 2006, 08:34 AM
Authorized User
 
Join Date: Sep 2006
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to misskaos
Default TIMED response.redirect

How would I go about setting my redirect to a timed response??
i.e. response.redirect("finish.asp") (after maybe 20 or 30 seconds)??

Thanks in ADVANCE for all of ur assistance!

Have a blessed day!



T.B.
misskaos99@yahoo.com
__________________
T.B.
misskaos99@yahoo.com
 
Old December 7th, 2006, 05:51 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

See in the land of real programmers ;] (.NET that is) we have System.Threading.Sleep([integer]) that will pause a thread for x seconds and then finish executing.

Why do you want to pause execution before redirecting? Have you thought about using a JavaScript timer and then calling location.href?

Catch me on yahoo if you need anything else.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old December 9th, 2006, 08:13 PM
Authorized User
 
Join Date: Sep 2006
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to misskaos
Default

Aww D i had no idea u responded! Its been years since i've gotten a response! lol. I wanted it delayed so that the user would have enough time to read what the page says first (i.e. if insert fails it directs user to a "failed" page, explains possible reasons their update/insert failed and redirects them back to the page they were on to fix their errors.

However! I got a solution and i used
<body onLoad="setTimeout('history.go(-1)',15000)">
instead so when the user is redirected to the page for whatever reason, on load, the page will direct em' back automatically.

Thanks for the response tho lol

ToODLeS, IM me! ;)

Quote:
quote:Originally posted by dparsons
 See in the land of real programmers ;] (.NET that is) we have System.Threading.Sleep([integer]) that will pause a thread for x seconds and then finish executing.

Why do you want to pause execution before redirecting? Have you thought about using a JavaScript timer and then calling location.href?

Catch me on yahoo if you need anything else.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
T.B.
misskaos99@yahoo.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.Redirect does not work babakwx ASP.NET 2.0 Basics 7 December 2nd, 2008 01:52 AM
response.redirect sarah lee ASP.NET 1.0 and 1.1 Basics 1 October 27th, 2006 08:57 AM
response.redirect ava_h .NET Framework 2.0 0 October 18th, 2006 10:21 PM
response.redirect crmpicco Classic ASP Basics 3 February 9th, 2005 01:50 AM
Response.Redirect dhborchardt Classic ASP Basics 4 June 16th, 2003 05:56 AM





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