获取浏览器版本信息
2006-02-23 20:50
337 查看
Code
============
ASP.Net(VB)
============
'获取浏览器版本信息
'//Dim MyRequest As System.Web.HttpRequest
Dim StrUA As String '用户代理信息
Dim strFactVer As String
StrUA = Request.ServerVariables("HTTP_USER_AGENT") '获取IE版本
If InStr(StrUA, "MSIE") Then
strFactVer = Mid(StrUA, InStr(StrUA, "MSIE") + 5, 3)
If Convert.ToString(strFactVer) > 5.5 Then
Me.spnWebEditor.InnerHtml = "<iframe id='eWebEditor1' src='http://www.cnblogs.com/eWebEditor/eWebEditor.asp?id=txtContent&style=EasyClick' frameBorder='0' width='650' scrolling='no' height='350' runat='server'></iframe>"
Me.txtContent.Style.Add("Display", "none")
End If
End If
============
ASP.Net(VB)
============
'获取浏览器版本信息
'//Dim MyRequest As System.Web.HttpRequest
Dim StrUA As String '用户代理信息
Dim strFactVer As String
StrUA = Request.ServerVariables("HTTP_USER_AGENT") '获取IE版本
If InStr(StrUA, "MSIE") Then
strFactVer = Mid(StrUA, InStr(StrUA, "MSIE") + 5, 3)
If Convert.ToString(strFactVer) > 5.5 Then
Me.spnWebEditor.InnerHtml = "<iframe id='eWebEditor1' src='http://www.cnblogs.com/eWebEditor/eWebEditor.asp?id=txtContent&style=EasyClick' frameBorder='0' width='650' scrolling='no' height='350' runat='server'></iframe>"
Me.txtContent.Style.Add("Display", "none")
End If
End If
相关文章推荐
- HttpServletRequest请求中获取操作系统,浏览器及浏览器版本信息
- JAVA之——获取来访者IP、浏览器版本、系统版本、主机名、Mac地址等信息(插曲)
- js 获取浏览器版本信息(全)
- js 获取浏览器版本信息(全)
- web开发浏览器的问题,获取浏览器的版本信息
- js获取客户端浏览器信息及版本
- JS获取客户端信息(屏幕分辨率、浏览器版本、操作系统版本)
- JS获取当前浏览器及版本信息
- [f]智能获取浏览器版本UA信息的方法
- Javascript获取浏览器版本、支持等信息
- 获取浏览器版本信息
- js 获取浏览器版本信息(全)
- Java获取来访者IP、浏览器版本、系统版本、主机名、Mac地址等信息
- php:PHP获取浏览器的版本信息
- php:获取浏览器的版本信息
- 【转载】JS获取浏览器版本信息
- js获取浏览器版本信息整理
- ASP.NET获取客户端的操作系统、浏览器、.NET版本等信息(图)
- ASP.NET获取客户端的操作系统、浏览器、.NET版本等信息(图)
- JS获取浏览器flash player版本信息