ASP-db™ is the first ASP component that has been developed to provide an easy and yet powerful way to display ODBC/OLEDB databases on a web page. In creating ASP (Active Server Pages), Microsoft has set a new standard for developing powerful dynamic HTML applications and web pages. To many seasoned programmers, web programming presents a difficult new challenge due to the primitive nature and "stateless" operation of the web development environment. In many web applications, database viewing represents a significant percentage of the development effort. ASP-db™ allows a web page developer to handle this complicated function with minimum of code in a matter of minutes. If you are a programmer who is barely familiar with the ASP environment, you may use the ASP-db™ examples as templates to construct entire ASP web pages quickly. For example, with ASP-db™, an entire database viewing application for a database with 120 fields and 2000 records can be written in only 3 lines of code! Further more, ASP-db™ is known to start where others ends. Majority of the advanced features are simply not found in any competitor's product. While ASP-db™ can product extreme fast functional modules that nobody could match, the ASP-db Designer redefines the word "productivity" of a normal web programming environment. For example, via 18 clicks, Designer can product a set of complete skeleton template (Input, output and source) of a three layers dynamic list with triggers. All needed to be done by the user is to hand over the job to the graphic designer to dress up the template files. This 18 clicks can easily be equivalent to months of programming in many cases.

Important notes on component names in this document: Since this manual is written to cover all variations of the ASP-db components (Free, View, Pro, Enterprise, and 2000), you may need to substitute your product name in place of the one used in this document. ASP-db Enterprise is used in this manual for most installation and programming examples. If you are using something other than Enterprise, the following table will help you to determine the names you should use instead. All levels of the product line use the same dll file called ASPdb.dll The various features for the different levels are simply turned on or off base on the ID file that you went given at the time of purchase.
ASP-db™ includes the following files
GOLD.DLL, EP.DLL or ASPdb2000-xxx.dll (Core DLL for use on a Windows NT Workstation, or Windows 2003 Server)
Various additional support files for special advanced features using Java Applets.
Designerxxxx.exe - Code generator.
ASPdbManual.PDF (this documentation file in PDF format)
asp-test.asp, asp-test.csv (Sample ASP source files and a text database for testing)
*.gif (Sample Navigation Bar buttons. These
files are in a "\images" subdirectory and should be placed in an “images” subdirectory beneath the supplied asp-test.asp file for proper operation.) The location of this directory may be specified with the dbImageDir property.
B. Overview of how ASP-db™ works
ASP-db™
is COM+ server-side component. It is designed to be installed on a Microsoft web server. Once installed, any ASP file on that server can “call”
ASP-db. When its “ASPdb” method
is called, it will open and read any ODBC data
source, and output it as standard HTML, either as a grid, form, or combination
of the two. Below is a basic
description of how using ASP-db, the information gets from the server to the
end-user’s browser:
Installation consists of:
Uncompress the aspdb200?-xxx.exe file that was delivered to you into a directory called /ASPDB.
Copying the
_ASPdb2001.ID file into your System32 folder.
This file should have been provided to you at the time of purchase.
If you run without having this ID file present, ASP-db will simply run in
the “evaluation mode”.
Registering the dll. Note: If you are updating
to a newer version of ASP-db™, you must first un-register the
previous version and stop (or shut down) the server processes, then register the
new dll.
Running the simple test program to be sure that everything is working OK.
Confirm the new installation using the Designer2002.
ASP-db™
also make available a “developer” version of the software to users under the
ASP-db maintenance
contract.
The purpose of this copy is for use on stand-alone machines that do not
have access to a network where the full server version is installed.
An example of this might be a notebook computer running Personal Web
Server (PWS) 4.0 on Windows 98. With
the developer copy installed on this machine, one would have a complete
standalone development and testing station that does not require being attached
to a network whatsoever.
Before
ASP-db™ can be used in a web page application, you must install and
register the
DLL on your Microsoft web server. To
do this, run the ASPDB.EXE setup program.
Please be sure that the directory you choose to install it in has read
and execute rights. After
the setup program has been run, YOU SHOULD MOVE ALL DLL FILES INTO A FOLDER THAT
IS NOT ACCESSIBLE TO INTERNET USERS, SUCH AS \SYSTEM32.
You
may then install and register ASP-db™ in one of two ways.
Registering from MTS (Microsoft Transaction Server) - Preferred Method
Note:
In Windows 95/98/NT/XP this is called “MTS”.
In Windows 2000, it is called “Component Services. This
instructions are slightly different for Windows 2000.
MTS Instructions
(NT):
You
can create a Package Component in the Microsoft Transaction Server with the MMC (Microsoft
Management Console).
Open Microsoft Transaction Server
Open Computers
Open My Computer (Note: If updating to a newer version of ASP-db, right click on My Computer and pick Shut Down.)
Open Packages Installed
Left Click on Packages Installed, then Right Click
Choose NEW PACKAGE from the popup menu
Click on Create an Empty Package
Type in a name, such as ASP_Stuff
Click Next then choose either Interactive or This User & FINISH.
Note: For Windows NT Server installations, we recommend “This User”,
otherwise, someone must be logged onto the server in order for ASP-db
to run.
Open up your "ASP_Stuff" package
Left Click on Components, then Right Click on it and...
Choose NEW COMPONENT
Click on Install new component
Click on Add Files and choose the ASPdb.dll file that you wish to register.
Click the Finish button.

Component
Services Instructions (Win 2000):
To
start Component Services, go to Control Panel / Administrative Tools/ Component
Services. Once inside component
Services, drill down into Computers, then My Computer, then Com + Applications.
Then Right-click on Com + Applications and choose “New” or “New
Application”.
At "Welcome to the COM Application Install Wizard" screen, click Next >.
Click on Create an Empty Application.
Enter a name, like ASP_Stuff. When asked "Library or Server", pick
Server.
Click Next then choose This User.
Enter the User or click Browse to select the user. Clicking Browse is safer, to ensure that the correct domain and spelling are used. Enter the password and confirm the password. Warning, be sure to include the domain/username if required. Click on Finish. (Note: We recommend "This User", otherwise, someone must be logged onto the server in order for ASP-db to run.)
Open up your "ASP_Stuff" application.
Left-click on Components, then right-click it and choose New Component.
At "Welcome to the COM Application Install Wizard" screen, click
Next >.
Click on Install new component.
Click "Add" then choose the ASPdb.dll file that you wish to register.
Click the Finish button.
WS2003 install:
This method of registering the dll should NOT BE USED. The instructions are included here only for the purpose of how to unregister your dll in case you had registered using REGSVR32 in the past. It should only be used in an offline W98 mode.
First
open a DOS prompt.
Then, change to the directory where the dll was installed.
IMPORTANT!
If you register ASP-db™ in this way, you must Un-register it before
installing a newer version. Un-registering ASP-db™ is done in a very similar manner,
except at the DOS prompt, you must type:
REGSVR32 /U ASPdbEnterprise-Server.dll
After
Un-registering, you MUST then shut down and RESTART your web server.
To do this, go to the DOS prompt
and type:
NET
STOP IISADMIN /Y
NET START W3SVC
Note:
If you get a message like “Bad command or file name” it is probably
because the REGSVR32 program is not in your path.
Try to locate the program REGSVR32.EXE on your C drive and add that
folder to your path. Or if REGSVR32
is not in your path, you might try typing:
\Windows\System\REGSVR32
ASPdb-Free.dll
Notes on Evaluation Copy
The
evalaution copy of ASP-db has no expiration date and is a
fully functional version. It has an advertising banner and a limitation of
displaying a maximum of 50 records at one time.
Only limited charting applets are provided
Installing an Updated Version
If you have already installed ASP-db and you want to install a new updated version, you must unregister you old dll first. The method of un-registering your dll depends on how it was registered in the first place.
If you originally registered it with MTS
…
Start MTS
Drill down to "My Computer".
Right click on My Computer and pick Shut Down Server.
Drill down into the Components folder under Packages Installed.
Highlight the ASP-db dll and hit Delete.
Using Windows Explorer, drag and drop the dll into the Components folder on the right side of the screen.
Right click on My Computer and pick Refresh All Components.
If you originally registered it with
REGSVR32 …
Go
to a DOS prompt and change into the directory where the dll resides. At the DOS
prompt, type:
REGSVR32 /U ASPdbEnterprise.dll
(substitute your .dll name if different, i.e. ASPdbPro.dll)
After Un-registering, you MUST then shut down and RESTART your web server.
To do this, go to the DOS prompt and type:
NET
STOP IISADMIN /Y
NET START W3SVC
Next,
install the new dll using the instructions above in D: Installation Details.
Note: You must reboot your W98 computer upon installing a new DLL in MTS mode.
If
you have purchased a copy of ASP-db , you should have received an “ID” file
called ASPdb.ID. This
file will take ASP-db out of “Evaluation Mode” and allow you to utilize
whatever functionality you purchased (View, Pro, Enterprise, 2000, etc). Just
put this ID file into your system32 folder.
|
<HTML> |
The general form for usage is to:
first create an object
and give it a name, such as MyDb.
Example: Set MyDb = Server.CreateObject(“ASP.db”)
specify the database
name, such as inventory.mdb.
Example: MyDb.dbMDB =
Server.MapPath("inventory.mdb")
optionally over-ride
any of the defaults that you want to change (color, borders, etc.)
Example: MyDb.dbColor =
"Blue,White,Yellow,Black"
specify a table name
and query criteria
Example:
MyDb.dbSQL = "Select * FROM [Shoes]"
Note: Brackets [ ] around field names and table names
are optional and are only required when they contain space(s).
and finally, display
the data.
Example: MyDb.ASPdb
G.
Sales and Technical Assistance:
For sales or technical assistance, please contact your sales representative.
The following is a matrix of the functions that
are NOT available when working with different versions of ASP-db -
| Version | Lockout Functions |
| Gold | None |
| OEM | Dynalist; Validator; Calendar |
| Evaluation (Local Version) |
Template; Chart; MagicLayout; Dynalist; Validator; Calendar |
| Enterprise | Template; Chart; MagicLayout; Dynalist; Validator; Calendar |
| Pro | SelectedItem; LookUp; Template; Chart; MagicLayout; Dynalist; Validator; Calendar |
| View | StoredProc; Edit; SelectedItem; LookUp; Template; Chart; MagicLayout; Dynalist; Validator; Calendar |