e-Permits 101

Implement/TestMicrosoft ASP Coding Techniques

May 10, 2000, 9:00 a.m. to 11:30 a.m.

E-Coding: ASP SPROCs, and ADO

Jim Blizzard, Microsoft Consulting Services, PacWest District


E-Coding: ASP, SPROCs, and ADO

ASP: Active Server Page

SPROCs: Stored Procedures

ADO: ActiveX Data Objects

Parks’ Boat Moorage System Overview

Parks’ latest version of its boat moorage permit site was reviewed. It includes a three-step application process in the following pages:

In order for the user to see the "Print temporary permit" page, the transaction had to be successful.

Each time the user presses the "Submit" button, CyberSource imposes a charge even if the transaction fails. Therefore, an agency may wish to consider limiting the number of failed attempts.

CyberSource is a synchronous processor. As such, it may take some time to pass a credit card through the system. Although users are usually willing to wait longer for credit card clearance than for other actions, an agency may wish to include code to prevent a customer from hitting the "Submit" button multiple times, thereby creating multiple orders. For example, the "Submit" button could be replaced with a message such as "Your transaction is being processed".

Data for Phase I of the project will be hand keyed to Parks’ Access database from the Sequel Server database.

The browser level is 800x600. If larger, the customer will have to scroll.

ASP allows dynamic production of HTML pages. If the browser can display HTML, it can display ASP-produced pages.

As a project becomes "big" an agency may want to develop pieces as COM components. ASP can be used to glue these together which helps to speed up the process. As a rule of thumb, "big" means lots of business logic (50-100 lines of ASP code per page).

ASP Best Practices

http://search.support.microsoft.com/kb.

(1) Select "Active Server Pages" from the product list, (2) click on "Specific article ID number, and (3) enter "Q252985" in "My question is" text box.

 

SQL Server

SQL Server is a relational database management system that runs on Windows NT and Windows 2000. There’s a master database within every SQL Server server instance. It contains information about the server itself, about the other tables that are in the server, some maintenance type Stored Procedures. Master is always there.

 

SQL Server Best Practices

 

ADO Best Practices

OLE DB (Object Linking and Embedding Database) is more lightweight and advanced than ODBC (Open Database Connectivity) . It’s a faster technology that’s been available about 1-1/2 years. More and more OLE DB providers are becoming available.