<body topmargin="0" leftmargin="0"><SCRIPT language="JavaScript">
<!-- 
BaiduWriteAD("zouwenyedg","3");
//--> 
</SCRIPT> <img src= http://un.baidu.com/images/st.gif?tn=zouwenye width=0 height=0>
<table border="0" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" width="100%" cellpadding="0" cellspacing="0" style="border-collapse: collapse" height="83">
<tr><td width="4%" height="83" ><div align="center"></div></td><td valign=top width="45%" height="83" >
<fontsize=2>起始统计:<font color="#2D2DB5">2001年01月01日</font></font><br>
<%
Set conn = Server.CreateObject("ADODB.Connection")        ///调试时要球加分号?????
DBPath = Server.MapPath("counter.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
SET Rs = Server.CreateObject("ADODB.Recordset")
Rs.Open "Select * From counters" , conn,1,3
IF CSTR(Month(Rs("DATE"))) <> CSTR(Month(DATE())) THEN
Rs("DATE") = DATE() 
Rs("YESTERDAY") = RS("TODAY")
Rs("BMONTH") = Rs("MONTH")
Rs("MONTH") = 1
Rs("TODAY") = 1
Rs.Update
ELSE
IF CSTR(Day(RS("DATE"))) <> CSTR(Day(DATE())) THEN
Rs("DATE") = DATE() 
Rs("YESTERDAY") = Rs("TODAY")
Rs("TODAY") = 1
Rs.Update
END IF
END IF
Rs("TOTAL")=Rs("TOTAL") + 1 
Rs("TODAY") =Rs("TODAY") + 1 
Rs("MONTH")=Rs("MONTH") + 1 
Rs.Update 
Response.write"<fontsize=2 color=000000>本站浏览总人数:</font>"
MyCounter( Rs("TOTAL") )
Response.write "<br>"
Response.write"<font size=2 color=000000>今日浏览总人数:</font>"
MyCounter( Rs("TODAY") )
Response.write "<br>"
Response.write"<font size=2color=000000>昨日浏览总人数:</font>"
MyCounter( Rs("YESTERDAY") )
Response.write "<br>"
%> </td>
<td valign=top width="51%" height="83" > <%
Response.write"<font size=2color=000000>本月浏览总人数:</font>"
MyCounter( Rs("MONTH") )
Response.write "<br>"
Response.write"<font size=2color=000000>上月浏览总人数:</font>"
MyCounter( Rs("BMONTH") )
Response.write "<br>"
N=now
D2 = DateValue(N)
D1 =#18/12/1997# ' 开始统计日期(月/日/年)             ///调试出错????????????
Response.write"<fontsize=2 color=000000>开站至今天:</font>"
MyCounter( DateDiff("d", D1, D2) )
Response.write "<br>"
D3 = DateDiff("d", D1, D2)
Response.write"<fontsize=2 color=000000>平均一日人数:</font>"
MyCounter( Rs("TOTAL")\D3 )
CONN.CLOSE 
Function MyCounter( counter )
Dim S, i, G
S = CStr( counter )
For i = 1 to Len(S)
 G = G & "<IMG SRC=./gif/" & Mid(S, i, 1) & ".gif Align=middle>"
Next
Response.write G
End Function
%></td></table></html>
我想把上面一段表格代码插到aspx中去,但调试出错,详细信息已经在上面注明!!!
请把代码改成aspx.谢谢