RAD Studio 2007 - Page Counter Example

ASP.NET 2.0 application with AJAX and InterBase/Blackfish - Example

Now with RAD Studio 2007 and ASP.NET 2.0 we have a lot of cool features for .NET Web Development and them I move this example to ASP.NET 2.0 and migrate from BDP to ADODbxClient.

This new version of Page Counter explores some of these news features in RAD Studio 2007, like:

Also explains the 8 events in the global.asax file. These events are used to create application access, page access and logged users counters.

This application was tested with two databases, InterBase 2007 and Blackfish SQL, so I'm using ADODbxClient that you can created the same database structure in other databases.

Database Setup Information: the first time you run

This application uses an InterBase database (pictures.ib), whose creation and population scripts are located in the "database" subdirectory.  The first time you open the application the database may not be set up correctly, and the data will not appear at design time. So it is necessary to correctly set up the BdpConnection control to access the .ib used by the application.

The database connection is based on dbExpress, the parameteres in Web.Config define what database to use.
The parameter DatabaseAlias define the database connection, you can connect in InterBase or Blackdish SQL:

 For InterBase use the alias PageCounterInterBase

 For BlackfishSQL use the alias PageCounterBlackfish

Web.config and dbxconnections.ini parameters information:

Before you run this application, please check the following web.config and dbxconnections.ini parameters for InterBase or/and Blackfish SQL:

Running the Demos

  1. Start the IDE.
  2. Open the project. Complete the steps from the Setup Information section above.
  3. Compile the Applicaton (Project Menu, Compile all projects).
  4. Run the application with debugging (F9) or without debugging (Shift+Ctrl+F9)