Results 1 to 2 of 2

Thread: browser

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    tehran,iran
    Posts
    53

    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%>

  2. #2

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    tehran,iran
    Posts
    53

    Cool

    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
  •  



Click Here to Expand Forum to Full Width