Autodesk 15606-011408-9300 Developer Guide - Page 111
Listing File Contents with ASP, Event, Description
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 111 highlights
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. 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 mapresource 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. Creating Report Scripts with ASP | 111