ASP技术访问WEB数据库
e";
rs.open(sqlStr,dbConn,1);
if(rs.RecordCount < 1) {
Response.write("<p> 无符合条件记录</p>");
Response.write("<p><form> <input type='button' value=' 返回' onclick='window.history.back()' name='b1'></form></p>");
}
else {
Response.write("<P><center><B>数据查询结果</B></center></P>");
Response.write("<tr><td><b>代码</b></td><td><b>分类</b></td><td><b>备注</b></td>");
for(var i = 1;i <= rs.Pagesize;i++) {
if(!rs.Eof) {
Response.write("<td><span style='font-size:9t'>"+rs("code")+"</span></td>");
Response.write("<td><span style='font-size:9t'>"+rs("class")+"</span></td>");
Response.write("<td><span style='font-size:9t'>"+rs("memo")+"</span></td>");
Response.write("</tr>");
rs.MoveNext();
}
else break;
}
Response.write("</table></form>");
rs.close();
dbConn.close();
}
</script>
本文链接地址:http://www.oyaya.net/fanwen/view/172508.html
rs.open(sqlStr,dbConn,1);
if(rs.RecordCount < 1) {
Response.write("<p> 无符合条件记录</p>");
Response.write("<p><form> <input type='button' value=' 返回' onclick='window.history.back()' name='b1'></form></p>");
}
else {
Response.write("<P><center><B>数据查询结果</B></center></P>");
Response.write("<tr><td><b>代码</b></td><td><b>分类</b></td><td><b>备注</b></td>");
for(var i = 1;i <= rs.Pagesize;i++) {
if(!rs.Eof) {
Response.write("<td><span style='font-size:9t'>"+rs("code")+"</span></td>");
Response.write("<td><span style='font-size:9t'>"+rs("class")+"</span></td>");
Response.write("<td><span style='font-size:9t'>"+rs("memo")+"</span></td>");
Response.write("</tr>");
rs.MoveNext();
}
else break;
}
Response.write("</table></form>");
rs.close();
dbConn.close();
}
</script>
《ASP技术访问WEB数据库(第4页)》