|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
由于ASP提供的是一对多的服务,所以用户的一些特殊需求很难得到满足。统计 <!--#Include File="Statistics_Connection.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Statistics Details</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Author" content="Jack Ma">
<link rel="stylesheet" type="text/CSS" href="Statistics_CSS.css">
<SCRIPT LANGUAGE="javascript">
<!--
function ChangeColor(argPtr, argColor)
{
argPtr.style.backgroundColor=argColor;
}
-->
</script>
</head>
<body>
<div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="ColorBottomL1">
<tr>
<td>
<%
Dim rstStatisticsDay
Dim strWriteHTML, colorOver, colorOut, ColorDbClick
Set rstStatisticsDay = Server.CreateObject("ADODB.Recordset")
With rstStatisticsDay
.ActiveConnection = cnnStatistics
.CursorType = adOpenForwardOnly
.LockType = adLockReadOnly
.Source = "Select VisitDate, Count(ID) As VisitsDaily From IPs Group By VisitDate Order By VisitDate Desc"
.Open
End With
strWriteHTML = _
"<table class='ColorBottomL1_Back' border='0' width='100%' cellpadding='5' cellspacing='1'>" & vbCrLf & _
"<tr class='ColorBottomL2_ItemTop'><td><B>Date</B></td><td><B>Visits</B></td></tr>" & vbCrLf
colorOver = Chr(34) & "#ffcc66" & Chr(34)
colorOut = Chr(34) & "#cccccc" & Chr(34)
Do While Not rstStatisticsDay.EOF
strWriteHTML = strWriteHTML _
& ( _
"<tr class='ColorBottomL2_ItemBody' " _
& "> " _
& rstStatisticsDay("VisitsDaily") & "</td>" & vbCrLf _
& "</tr>" & vbCrLf _
)
rstStatisticsDay.MoveNext
Loop
strWriteHTML = strWriteHTML & "</table>"
Response.Write strWriteHTML
rstStatisticsDay.Close
Set rstStatisticsDay = Nothing
Call CloseDatabase
%>
<td>
<tr>
</table>
</div>
</body>
</html>
</p> ASP.NET和ASP的比较,技术上比较已经没什么可说的了.新一代在大部分程度来说当然是比旧一代好了. 关键看你对所做软件的理解了.因人而定.会写的话也可能比ASP.NET写得更有效率和更方便重用 |
|