Solved

ASP HTTP_REFERER different in ie4 and nav4

Posted on 1998-08-27
3
180 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

772 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

12 Experts available now in Live!

Get 1:1 Help Now