Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

URL redirection
Hi
I have a question on page redirection

A user login from a asp page (p1), it calls another asp page(p2) to do the
validation, after successful
validation, it's forwarded to a welcom page(p3). How can I redirect back to
the orginal page(p1) after certain time?
I used  <meta http-equiv="refresh"; Content="3;
URL="<%=Request.ServerVariables("HTTP_REFERRER")%>">
but it seems redirect back to itself again and again.

Thank a lot !




Report this thread to moderator Post Follow-up to this message
Old Post
Lam
12-23-04 01:55 AM


Re: URL redirection
You will have to pass the page along from p1 to p2 to p3, in a hidden form
value or querystring value

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Lam" <javabeanbean@hotmail.com> wrote in message
news:edqX8LG6EHA.3616@TK2MSFTNGP11.phx.gbl...
> Hi
> I have a question on page redirection
>
> A user login from a asp page (p1), it calls another asp page(p2) to do the
> validation, after successful
> validation, it's forwarded to a welcom page(p3). How can I redirect back
> to
> the orginal page(p1) after certain time?
> I used  <meta http-equiv="refresh"; Content="3;
> URL="<%=Request.ServerVariables("HTTP_REFERRER")%>">
> but it seems redirect back to itself again and again.
>
> Thank a lot !
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Curt_C [MVP]
12-23-04 01:55 AM


Re: URL redirection
but how do I pass the URL from P1 to p2 then p3?
ie. how do I get the URL of p1 in P2?  I don't know which page will p1 be

Thanks

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:#od2SQG6EHA.540@TK2MSFTNGP12.phx.gbl...
> You will have to pass the page along from p1 to p2 to p3, in a hidden form
> value or querystring value
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Lam" <javabeanbean@hotmail.com> wrote in message
> news:edqX8LG6EHA.3616@TK2MSFTNGP11.phx.gbl... 
the 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Lam
12-23-04 01:55 AM


Re: URL redirection
as I said.... hidden form field or querystring

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Lam" <javabeanbean@hotmail.com> wrote in message
news:e8v0hsG6EHA.2124@TK2MSFTNGP15.phx.gbl...
> but how do I pass the URL from P1 to p2 then p3?
> ie. how do I get the URL of p1 in P2?  I don't know which page will p1 be
>
> Thanks
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:#od2SQG6EHA.540@TK2MSFTNGP12.phx.gbl... 
> the 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Curt_C [MVP]
12-23-04 08:55 PM


Re: URL redirection
'// P1
<form action="p2.asp">
<input type="hidden" name="strSomeValue"
value="<%=request.servervariables("REMOTE_ADDR">
</form>

'// P2
strSomeValue = Request.Form("strSomeValue")

Response.Redirect "p3.asp?p2=" & strSomeValue

'// P3
<meta http-equiv="refresh" content="30;url='p1.asp'">

Response.Write "P2 passed the value: <b>" request.querystring("p2") & "</b>"

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!


"Lam" <javabeanbean@hotmail.com> wrote in message
news:e8v0hsG6EHA.2124@TK2MSFTNGP15.phx.gbl...
> but how do I pass the URL from P1 to p2 then p3?
> ie. how do I get the URL of p1 in P2?  I don't know which page will p1 be
>
> Thanks
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:#od2SQG6EHA.540@TK2MSFTNGP12.phx.gbl... 
form 
> the 
back 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Steven Burn
12-23-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:16 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.