Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ASP HTTP_REFERER different in ie4 and nav4

Posted on 1998-08-27
3
183 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

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

765 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