Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting browser type in ASP
Message
 
To
03/01/2002 11:10:15
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00600308
Message ID:
00600343
Views:
14
>I never had to do it before. So far, I was always using it from Javascript. I was wondering what the equivalent would do to detect the browser from ASP?

Michel;

Here is a good starting point. This checks to be sure version 5.0 of I.E. is being used. I use it as an INCLUDE file on my forms.
< %
' Check Browser version...

response.buffer = true


Dim strUserAgent
Dim llOK
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
if inStr(strUserAgent, "MSIE 5.0") <> 0  then
'	Response.Write "Correct Browser is being used"
Else
Response.Redirect " BrowserNotification.asp "
End If	
% >
Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform