p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 7th, 2005, 06:09 AM
Authorized User
Points: 170, Level: 3
Points: 170, Level: 3 Points: 170, Level: 3 Points: 170, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2005
Location: Delhi, Delhi, India.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
  #2 (permalink)  
Old March 7th, 2005, 06:37 AM
Friend of Wrox
Points: 1,222, Level: 13
Points: 1,222, Level: 13 Points: 1,222, Level: 13 Points: 1,222, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Rawalpindi, , Pakistan.
Posts: 322
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
  #3 (permalink)  
Old March 7th, 2005, 06:52 AM
Friend of Wrox
Points: 2,450, Level: 20
Points: 2,450, Level: 20 Points: 2,450, Level: 20 Points: 2,450, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
  #4 (permalink)  
Old March 10th, 2005, 06:46 AM
Authorized User
Points: 170, Level: 3
Points: 170, Level: 3 Points: 170, Level: 3 Points: 170, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2005
Location: Delhi, Delhi, India.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page redirect help jroxit Classic ASP Basics 7 August 11th, 2008 12:01 PM
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 09:49 PM
Redirect to next page qazi_nomi Javascript How-To 1 September 1st, 2004 03:07 AM
Redirect page Warbird Classic ASP Basics 4 June 20th, 2003 08:51 PM



All times are GMT -4. The time now is 07:53 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc