Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sensing the users location 2

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
CA
Hi Everyone

Is there any way in ASP to tell what page a user is on? I have an .inc file that is a anvbar consisting of drop down menus. I want to make the option selected be dependent (obviously) on whatever page you are on. I want to do something like:

<%if <location> = 1stpage.asp then%>
<option value=1stpage selected>1st Page<option>
<%else%>
<option value=1stpage>1st Page<option>
<%end if%>
etc. etc.

But I don't know how to determine <location>. This must be easy. I tried REsponse.QueryString(&quot;URL&quot;), but that didn't work. Anyone?

Ben
 
put a hidden field on every form.

eg:

<input type=hidden name=fLocation value=1stpage>


br
Gerard
 
Hi Gerard

Thanks for that input. The problem is that the form is in an .inc file that I include in every page, so I'd have to end the form on each page, with the addition of the hidden field. Actually, I suppose that might work...

a VBscript solution would still be interesting to me...

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top