Display the data in the database via the Client control (a list of ASP and JavaScript parameters)

zhaozj2021-02-08  254

From the browser to the database relationship:

Browser

MSChart Control

JavaScript (Client-Side)

ASP (Server-Side Vbscript)

ADO

ODBC

DBMS

==================

The key is to assign contents within the RS to 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 data

Set Oconn = Server.createObject ("AdoDb.Connection")

Oconn.open "DSN = localserver; server = (local); UID = sa; pwd =; database = pubs

SET ORS = Oconn.execute (Sqlstring)

%>