Basic HTML version of Foils prepared July 5 98

Foil 10 ASP - Example Code I

From FMS: Forces Modeling and Simulation Handout JSU HPC Summer Institute for Undergraduates, Jackson MS -- June 15 1998. by Wojtek Furmanski, Subhash Nair, Tom Pulikal


<!-- #Include file="utils.asp" --> <!--include file containing some variable declarations-->
<!-- The file that lists the classes in the left frame // sp_classes_list.asp --->
<html>
<head><title>Speedes Database - sp_classes_table Table List</title></head>
<body bgcolor="#ffffff">
<%
Dim selid, clsid
selid = request.querystring("id") 'get the id from the querystring
if(selid = "") then
selid = 1
end if
` open up a database connection and execute the SQL query
Set OBJdbConnection = Server.CreateObject("ADODB.Connection")
OBJdbConnection.Open "speedes"
` select id and name of all classes from the classes table
SQLQuery = "SELECT clsid,cname FROM sp_classes_table"
`execute the SQL query and get the resultset
Set typelist = OBJdbConnection.Execute(SQLQuery)
%>



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998