Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-17-2002, 11:53 PM   PM User | #1
ahmedsoliman
Regular Coder

 
Join Date: Jun 2002
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
ahmedsoliman is an unknown quantity at this point
wait 2 sec

after submit the form enterd by user i want to wait 2 seconed in confirm.asp then redirect them to another page

Last edited by ahmedsoliman; 07-17-2002 at 11:56 PM..
ahmedsoliman is offline   Reply With Quote
Old 07-18-2002, 12:40 AM   PM User | #2
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
<meta http-equiv="Refresh" content="2; URL=http://www.yourpage.here">
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 07-18-2002, 07:38 AM   PM User | #3
ahmedsoliman
Regular Coder

 
Join Date: Jun 2002
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
ahmedsoliman is an unknown quantity at this point
i know this code by html but i thought there are a same function by asp,like this site when i post qustion or reply
thank you

Last edited by ahmedsoliman; 07-18-2002 at 07:41 AM..
ahmedsoliman is offline   Reply With Quote
Old 07-19-2002, 12:32 AM   PM User | #4
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
You can make it a variable, of course! I do this on some sites at work:

<meta http-equiv="Refresh" content="2; URL=<% = PAGE_URL %>">

__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 07-19-2002, 12:35 AM   PM User | #5
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
P.S. That should work fine, however here is a sample script done in ASP that will do the same thing:

<%
' Get Start Time
StartTime = Timer()

'Get End Time
EndTime = Timer()

'Determine how long it took
WaitTime = EndTime - StartTime

'Continue checking the elapsed time until it reaches 5 seconds
do while WaitTime < 5
'Get End Time
EndTime = Timer()

'Determine how long it took
WaitTime = EndTime - StartTime
loop

'Redirect user, since we know that it has been more than 5 seconds
Response.Redirect "page2.asp"
%>

From: http://www.askasp.com/articles.asp?ArtID=85

As you can see, generally it will be easier to use the HTML way.

__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 07-19-2002, 06:43 PM   PM User | #6
ecnarongi
Regular Coder

 
Join Date: Jun 2002
Location: Northern NJ
Posts: 401
Thanks: 0
Thanked 1 Time in 1 Post
ecnarongi is an unknown quantity at this point
what about Response.AddHeader "Refresh", "2;URL=mypage.htm" ??
__________________
true lies
ecnarongi is offline   Reply With Quote
Old 07-20-2002, 11:35 PM   PM User | #7
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
They're all good.
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:04 PM.


Advertisement
Log in to turn off these ads.