<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<script language="vbscript" runat="server">
Function DataToRsStatic(Conn,strSql)
Dim RsStatic
On Error Resume Next
Set DataToRsStatic = Nothing
If Conn Is Nothing Then
Exit Function
End If
Set RsStatic = Server.CreateObject("ADODB.RecordSet")
RsStatic.CursorLocation = 3
RsStatic.Open strSql,Conn,3,3
If Err.Number <> 0 Then
Exit Function
End If
Set DataToRsStatic = RsStatic
End Function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
</script>
<body>
<%
Set outCallConn = CreateObject("ADODB.Connection")
outCallConn.open "Provider=IBMDADB2.1;Password=didwell;Persist Security Info=True;User ID=administrator;Data Source=hongta"
strSql = "SELECT * FROM T_NoteForSend fetch first 10 rows only"
set rstData = DataToRsStatic(outCallConn, strSql)
if rstData.eof or rstData.bof then
response.Write("<br>没有该客户资料<br>")
else
rstData.MoveFirst
Dim i
i = 1
%>
<table table cellspacing=1 cellpadding=0 border=0 width="101%" bgcolor="#c3bfb3">
<tr bordercolor="#000000">
<td bgcolor="#CCCCCC" class="td-detail"><div align="left"> 序号 </div></td>
<td bgcolor="#CCCCCC" class="td-detail"><div align="left"> 信息标识 </div></td>
<td bgcolor="#CCCCCC" class="td-detail"><div align="left"> 手机号码 </div></td>
<td bgcolor="#CCCCCC" class="td-detail"><div align="left"> 短信内容 </div></td>
</tr>
<tr bordercolor="#000000">
<% Do While Not rstData.EOF %>
<td bgcolor="#FFFFFF" width="19%" id=num<%=i%>><%= i %></td>
<td bgcolor="#FFFFFF" width="22%"><div align="left" ><%= rstData("NoteSID") %></div></td>
<td bgcolor="#FFFFFF" width="23%"><div align="left" ><%= rstData("phonecode") %></div></td>
<td bgcolor="#FFFFFF" width="36%"><div align="left" ><%= rstData("NoteContent") %></div></td>
</tr>
<%
i = i + 1
rstData.MoveNext
Loop
rstData.Close
Set rstData = nothing
outCallConn.close
Set outCallConn=Nothing
End If
%>
</body>
</html>
我想把ID=num2的TD里的值取出来(不通过数据库,直接通过表的id取),请问应该怎么实现