Solved

ASP HTTP_REFERER different in ie4 and nav4

Posted on 1998-08-27
3
182 Views
Last Modified: 2013-12-25
I want to check the HTTP_REFERER value in a page contained within a frameset and take some action depending on the referer.  If the user has Nav4 then the referer is the page prior to the frameset, if they have IE4 then the referer is the frameset page itself.i.e say user is at page A and clicks a link to page B which is a frameset containing page C, then if the browser is ie4 then page C is told the referer is page B, if nav4 then page C is told the referer is page A.
So, is there some existing way in ASP to find out what the browser is, or do I need to download a component???
0
Comment
Question by:Asker
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 70 total points
ID: 1854613
You can use this code to determine the browser....

<% Set BT = Server.CreateObject("MSWC.BrowserType")
BType = BT.browser
Vnum  = BT.version
%>

variable BType will give you the Browser Name (IE or NS)
VNum will give you (4 for IE, or 4.0 for NS)

There you go... This is built into IIS3 & 4 so no more needed components...
0
 

Author Comment

by:Asker
ID: 1854614
Cheers!! - only problem Ive found is the my IIS 3.0 server doesnt recognise IE4 or nav4 (the component must be outdated - will have to upgrade component).
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1854615
No, you just need to download a new ini file.. Check this link to download a new browscap.ini file...

http://www.cyscape.com/asp/browscap/

This will update the browsers that ASP can detect.. BTW, sorry for such a slow rsponse... Been REAL busy...

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now