一个标签包含一个方法,一个方法对应两个超链接
一个标签对应两个超链接
在asp页面中如何实现
sub ShowProTotal()
dim sqlTot
dim rsTot
sqlTot="select Count(*) from Product where Passed=True "
if BigClassName<>"" then
sqlTot=sqlTot & " and BigClassName='" & BigClassName & "' "
if SmallClassName<>"" then
sqlTot=sqlTot & " and SmallClassName='" & SmallClassName & "' "
end if
else
if SpecialName<>"" then
sqlTot=sqlTot & " and SpecialName='" & SpecialName & "' "
end if
end if
Set rsTot= Server.CreateObject("ADODB.Recordset")
rsTot.open sqlTot,conn,1,1
if rsTot.eof and rsTot.bof then

totalPut=0
<!--response.write "共有 0 个产品"-->


else 
if rsTot(0)=1 then

<!--response.Write "共有 " & totalPut & " 个产品"-->
reponse.write"<a href=ProductShow.asp?ID=" & rsProduct("ID") & ">" 
else
response.Write "共有 " & totalPut & " 个产品"
end if
end if
rsTot.close
set rsTot=nothing
end sub