|
|
 |
| ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP Forms section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|

March 7th, 2005, 06:09 AM
|
|
Authorized User
|
|
Join Date: Feb 2005
Location: Delhi, Delhi, India.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Redirect to another page
Dear All,
As in this website,I too want to redirected to other page after some activity (login is in this case).Say when user filled password reset request to us and submit this form ,i want to pass some thanks statement through thanks.asp page,Then he should be redirected to say login screen automatically.
Now if i use "response.redirect" in thanks.asp page it is getting redirected immediately to login page from thanks.asp page ,so thanks message is not being shown to user.How to deal with this.
I hope i am able to convey my problem to you?
regards
om prakash
om prakash kumar
__________________
om prakash kumar
|

March 7th, 2005, 06:37 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2004
Location: Rawalpindi, , Pakistan.
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This is some type of time delay code which we used in a project for delaying 2 min and then displaying a mesage
<SCRIPT LANGUAGE="VBScript">
<!--
Dim intTimerID
hr=0 'change hours
min=2 'change minutes
sec=0 'change seconds
Sub HandleTime
if hr=0 and min=0 and sec=0 then
endtime
elseif min>=0 and sec>0 then
sec=sec-1
status=hr & ":" & min & ":" & sec
intTimerID=setTimeOut("HandleTime",950, "VBScript")
elseif min>0 and sec=0 then
min=min-1
sec=59
status=hr & ":" & min & ":" & sec
intTimerID=setTimeOut("HandleTime",950, "VBScript")
elseif hr>=0 and min=0 then
hr=hr-1
min=59
sec=59
status=hr & ":" & min & ":" & sec
intTimerID=setTimeOut("HandleTime",950, "VBScript")
end if
End Sub
Sub endtime
cleartimeout intTimerID
status = "Your Time Ended"
windows.location "yourpage.asp"
end sub
status=hr & ":" & min & ":" & sec
intTimerID=setTimeOut("HandleTime",950, "VBScript")
-->
</SCRIPT>
(*_*)
Numan
--------------------------------------------------
It is not important what you get But important is how you got it
|

March 7th, 2005, 06:52 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
you don't need any code for this, just an html meta tag:
<META HTTP-EQUIV="Refresh" CONTENT="10; URL=http://www.htmlhelp.com/">
redirects to http://www.htmlhelp.com/ after 10 seconds
|

March 10th, 2005, 06:46 AM
|
|
Authorized User
|
|
Join Date: Feb 2005
Location: Delhi, Delhi, India.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thnaks to both of you,it is working now
om prakash kumar
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |