Wrox Programmer Forums
|
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 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 March 7th, 2005, 06:09 AM
Authorized User
 
Join Date: Feb 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kumarop
Default 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
 
Old March 7th, 2005, 06:37 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

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
 
Old March 7th, 2005, 06:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old March 10th, 2005, 06:46 AM
Authorized User
 
Join Date: Feb 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kumarop
Default

thnaks to both of you,it is working now

om prakash kumar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page redirect help jroxit Classic ASP Basics 7 August 11th, 2008 11:01 AM
redirect to page other than default page sarah lee ASP.NET 1.0 and 1.1 Basics 3 December 15th, 2006 05:45 PM
Redirect to new page without closing current page peter2004 ASP.NET 2.0 Basics 5 June 5th, 2006 08:49 PM
Redirect to next page qazi_nomi Javascript How-To 1 September 1st, 2004 02:07 AM
Redirect page Warbird Classic ASP Basics 4 June 20th, 2003 07:51 PM





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