For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > November 2005 > Response.Redirect









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Response.Redirect
MrsLeigh

2005-11-29, 7:05 pm

I want to pass the NAME of the page that is calling a new page so that I can
be able to decide what actions because they are different depending on what
page requested.

Can someone help me out please?
Bob Butler

2005-11-29, 7:05 pm

"MrsLeigh" <MrsLeigh@discussions.microsoft.com> wrote in message
news:33991F6A-A5B8-4FB5-B539-D10A8672AB00@microsoft.com
> I want to pass the NAME of the page that is calling a new page so
> that I can be able to decide what actions because they are different
> depending on what page requested.
>
> Can someone help me out please?


You should ask questions like this in an ASP newsgroup; this group is for
the VB language, nit VBScript under ASP.

If it were me I'd probably add code to the called page to check the value of
request.servervariables("http_referer")
to see where I came from rather than relying on the caller to tell me.
Other server variables can be used to tell you the name and/or path to the
currently executing page if you still want to do it that way. see
http://msdn.microsoft.com/library/e...cba2c253006.asp

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

MrsLeigh

2005-11-29, 7:05 pm

Thank you that solved my problem, I like the http_referer better than my
original idea.

"Bob Butler" wrote:

> "MrsLeigh" <MrsLeigh@discussions.microsoft.com> wrote in message
> news:33991F6A-A5B8-4FB5-B539-D10A8672AB00@microsoft.com
>
> You should ask questions like this in an ASP newsgroup; this group is for
> the VB language, nit VBScript under ASP.
>
> If it were me I'd probably add code to the called page to check the value of
> request.servervariables("http_referer")
> to see where I came from rather than relying on the caller to tell me.
> Other server variables can be used to tell you the name and/or path to the
> currently executing page if you still want to do it that way. see
> http://msdn.microsoft.com/library/e...cba2c253006.asp
>
> --
> Reply to the group so all can participate
> VB.Net: "Fool me once..."
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com