我爱Aspx >> Asp.Net >> ASP中使用ServerVariables集合详解
strUA = Request.ServerVariables(“HTTP_USER_AGENT”)
Response.Write “The User Agent string is <B>” & strUA & “</B>
”
If InStr(strUA, “MSIE”) Then
Response.Write “To upgrade your browser go to “_
& “<A HREF=” & Chr(34) & http://www.microsoft.com/ie/”_
& Chr(34) & “>http://www.microsoft.com/ie/<A>
"http://dev.21tx.com/2005/11/16/”"
intVersion = Cint(Mid(strUA, InStr(strUA, “MSIE"http://dev.21tx.com/2005/11/16/”") + 5, 1))
If intVersion >=4 Then
Response.Write “You can use Microsoft Dynamic HTML"http://dev.21tx.com/2005/11/16/”"
End If
Else
If InStr(strUA, “Mozilla"http://dev.21tx.com/2005/11/16/”") Then
If InStr(strUA, “compatible;"http://dev.21tx.com/2005/11/16/”") = 0 Then
Response.Write “Your browser is probably Navigator. You can “_
& “download the latest version of Navigator from “_
& “<A HREF="http://dev.21tx.com/2005/11/16/”" & Chr(34) & http://home.netscape.com/"http://dev.21tx.com/2005/11/16/”"_
& “download/”& Chr(34) & “>http://home.netscape.com”_
& “/download/</A>
"http://dev.21tx.com/2005/11/16/”"
intVersion = Cint(Mid(strUA, InStr(strUA, “/"http://dev.21tx.com/2005/11/16/”") +1, 1))
If intVersion >= 4 Then
Response.Write “You can probably use Netscape Dynamic HTML"http://dev.21tx.com/2005/11/16/”"
End If
Else
Ҷƪл˵?
在ASP中操作HTTP报头方法分析[05-15]
ASP应用程序设计的Web状态管理分..[05-15]
解析ASP的Application和Session对..[05-15]
[asp]让你知道codepage的重要,关..[05-15]
ASP设计动态页中服务器端的处理[05-15]
PHP对战ASP:这还值得讨论吗?[05-15]
ASP中遍历和操作Application对象..[05-15]
ASP中实现小偷程序的原理和简单示..[05-15]
披着羊皮的大野狼 ASP中Session..[05-15]
ASP程序中使用断开的数据记录集[05-15]
在ASP中操作HTTP报头方法分析[05-15]
ASP应用程序设计的Web状态管理分..[05-15]
解析ASP的Application和Session对..[05-15]
[asp]让你知道codepage的重要,关..[05-15]
ASP设计动态页中服务器端的处理[05-15]
PHP程序加速探索之加速工具软件[05-15]
PHP程序员的优化调试技术和技巧[05-15]
正确理解PHP程序编译时的错误信息[05-15]
PHP实现简单线性回归之数学库的重..[05-15]
贯彻PHP中的MVC之控制器篇[05-15]