您的位置:首页 > 其它

获取浏览器版本信息

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: