Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > URL redirection

Reply
Thread Tools

URL redirection

 
 
Lam
Guest
Posts: n/a
 
      12-22-2004
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 !



 
Reply With Quote
 
 
 
 
Lam
Guest
Posts: n/a
 
      12-22-2004
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:#...
> 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" <> wrote in message
> news:...
> > 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 !
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
 
Steven Burn
Guest
Posts: n/a
 
      12-23-2004
'// 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" <> wrote in message
news:...
> 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:#...
> > 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" <> wrote in message
> > news:...
> > > 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 !
> > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Url Redirection getvivekv@gmail.com HTML 3 08-18-2006 06:02 PM
Usage Agreement Pop up and URL redirection =?Utf-8?B?Sg==?= Wireless Networking 1 05-30-2006 07:49 PM
URL - substitution of a correct URL by a GUID like URL in favorites. Just D. ASP .Net Mobile 0 08-11-2004 04:26 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
Re: Conditional URL Redirection... TC HTML 0 04-25-2004 03:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57