Creating Report Scripts with ASP
|
111
The following examples show how to create report scripts with ASP. We
recommend that you read them in order.
Note
For ColdFusion versions of the same examples, see “Creating Report
Scripts with ColdFusion” on page 89.
Listing File Contents with ASP
This example shows a simple server page that lists the contents of a map-
resource database. Note that this page accesses the database directly, instead
of using the Autodesk MapGuide reporting feature. Later, we’ll see how
Autodesk MapGuide fits into the picture.
Let’s say you have an MWF file pointing to a database containing parcel
information, such as the lot number, street address, owner’s name and so on.
If you want to list the contents of the database at the bottom of an HTML
page displaying the map, you would first rename the HTML file with an
.asp
extension and place it in a directory with script or execute permissions. Then
you would add some code to specify the scripting language, establish a
connection to the appropriate database records, and control the database
output.
The next sections describe each of those tasks in more detail.
Events Used to Create a Report Script
Event
Description
Session_OnStart
Runs the first time a user accesses your application.
Session_OnEnd
Runs when a user’s session times out or when a user quits
your application.
Application_OnStart
Runs once, when the first page of your application is
accessed for the first time by any user; does not run after
another user accesses the first page of your application. The
Web server needs to be shut down for Application_OnStart
to run again.
Application_OnEnd
Runs when the Web server is shut down.
Summary of Contents for 15606-011408-9300 - MAP R6.3 UPG
Page 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Page 6: ...vi ...
Page 16: ...16 ...
Page 30: ...30 ...
Page 84: ...84 ...
Page 134: ...134 ...
Page 202: ...202 ...