|
-
May 30th, 2001, 02:04 AM
#1
Thread Starter
Member
browser
I use this code to detect browser version
but when I test it with IE 6 it gives me netscape as browser
name, what is wrong and what is best way to
detect browser version in asp
please help me
<%
Set MyBrow=Server.CreateObject("MSWC.BrowserType")
response.write ucase(MyBrow.browser)
%>
<%if ucase(MyBrow.browser)="IE" then%>
<!--#include file="s_ie.inc" -->
<%else%>
<!--#include file="s_other.inc" -->
<%end if%>
-
May 30th, 2001, 11:52 AM
#2
Thread Starter
Member
Ok, I found the answer,
best way was servervariables that i have not checked it..
good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|