1.如何用Asp判断你的网站的虚拟物理路径 V=}AFGC85
答:使用Mappath方法 HMT^gmF)
< p align="center" >< font size="4" face="Arial" >< b > JiL%1y9|
The Physical path to this virtual website is: 6XPf0Gl
< /b >< /font > B>, O@og
< font color="#FF0000" size="6" face="Arial" > .JIn(
< %= Server.MapPath("\")% > %lsk>V
< /font >< /p > p`ai2`qC`
2.我如何知道使用者所用的浏览器? rJ)O(
答:使用the Request object方法 ;C,D1_20Z
strBrowser=Request.ServerVariables("HTTP_USER_AGENT") ~3bn?'`
If Instr(strBrowser,"MSIE") < > 0 Then SB
R=
Response.redirect("ForMSIEOnly.htm") _Wn5*
Pi%Z
Else c}K>#{YeB
Response.redirect("ForAll.htm") P+r-t8
End If >(Mu9ie*`
8w &