1.如何用Asp判断你的网站的虚拟物理路径 pV(Mh[ }P
答:使用Mappath方法 2ib,33 Z
< p align="center" >< font size="4" face="Arial" >< b > 7BwR ].
The Physical path to this virtual website is: OgQ8yKfDB
< /b >< /font > i%<NKE;v7m
< font color="#FF0000" size="6" face="Arial" > M=95E$6
< %= Server.MapPath("\")% > O`%F{&;29
< /font >< /p > nHDKe)V
2.我如何知道使用者所用的浏览器? 8tv4_Lbx
答:使用the Request object方法 L>g6
9D!
strBrowser=Request.ServerVariables("HTTP_USER_AGENT") +$VDV4l
If Instr(strBrowser,"MSIE") < > 0 Then {g`!2"
Response.redirect("ForMSIEOnly.htm") >?ar
Else 1i.3P$F
Response.redirect("ForAll.htm") :BV $3]y
End If 3WwCo.q;m
<"`f!k#[
3.如何计算每天的平均反复访问人数 Qx|HvT2P
答:解决方法 M;3q.0MU
< % startdate=DateDiff("d",Now,"01/01/1990") :%Iv<d<