>>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.
>
>
>< %
>' 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
>% >
>
Thanks, this is what I implemented a few minutes ago.
I found various objects that does the job. However, some of them return Netscape as the browser type and this is not correct. Then, I started to look at some function and found the InStr(). So, I mainly used the same approach.