从浏览器到数据库关系:
browser
mschart control
javascript (client-side)
asp (server-side vbscript)
ado
odbc
dbms
==================
关键在于将 RS 内的内容赋给 client-side javascript.
source code:
==================
<%@ LANGUAGE="VBSCRIPT" %>
<%
Dim oConn
Dim oRs
Dim curDir
Dim Index
Dim sqlstring
sqlstring = "select field from table"
' Create ADO Connection Component to connect
' with sample database
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "DSN=localserver;SERVER=(local);UID=sa;PWD=;DATABASE=pubs"
Set oRs = oConn.Execute(sqlstring)
%>
<%
oRs.close
oConn.close
%>
Document Title
发送这篇文章的网址给朋
【责编:admin】
--------------------next---------------------
阅读(240) | 评论(0) | 转发(0) |