Connecting to database Home

Introduction
Welcome
System requirements
Licensing details
What is the registration
Using ASPRunner
Working with projects
Templates
What are templates
Cars
Classified ads
Events
Jobs
Knowledge base
News
Paypal
Real estate
Sporting
Vacation houses
Connecting to the database
Datasource tables
Master-details
SQL query page
About SQL query designer
Query Designer
SQL
Results
Charts
Creating chart and setting parameters
Chart appearance
Using SQL to shape chart data
Reports
Creating report and setting parameters
Report totals and layout
Choose pages
Login page
User login settings
Advanced security settings
User group permissions
Dynamic permissions
Fields order and totals
Miscellaneous settings
Choose theme
Visual Editor
About
Toolbars
Page Elements
"View as" settings
"Edit as" settings
Validation types
Lookup wizard
Events
Output directory settings
After you are done
FTP upload
FrontPage Publishing
Advanced topics
Connecting to database
Connecting to MS Access database
Connecting to MS SQL Server database
Connecting to FoxPro database
Connecting to MySQL database
Connecting to Oracle database
Connecting to MS Excel database
Connecting to CSV or Text file
Events
Data Access Layer
More about events
Global events
Table events
Page life cycle overview
Predefined actions
Send simple email
Send email with new data
Save new data in another table
Insert a record into another table
Check if specific record exists
Display a message on the Web page
Redirect to another page
Custom code
Sample code
Show list of customer orders
Check if start date is ealier than end date
Before deleting a record check if related records exist
Speed up data entry using events
Publishing ASP application to the remote Web server
Using third party FTP client to publish ASP pages to the remote Web server
Using FrontPage to publish ASP pages to the remote Web server
Demo account
What is the Demo Account?
Terms and Conditions
Enterprise Edition
Online report/chart builder
Master-details relationships
Using JOIN SQL queries
AJAX-based Functionality
ASPRunner session variables
Debugging tips
Template files processing rules (Files.txt)
Multilanguage support
Useful functions and links
ASPRunner templates
Stylesheets
Template language
Rich Text Editor plugins
How to control Inline Add/Edit functionality from script
Troubleshooting "Operation must use an updateable query" errors
ODBC
Upgrade Guide from ASPRunnerPro 4.0 and older
Frequently Asked Questions
Error: Operation must use an updateable query.
Error: Syntax error in UPDATE statement.
Error: Syntax error in INSERT INTO statement
Error: Login failed for user 'MACHINE_NAME\IUSR_MACHINE_NAME'
Error: Data type mismatch in criteria expression
Error: The Microsoft Jet database engine cannot open the file (unknown).
Error: Unable to open registry key 'Temporary (volatile) Jet DSN for process ...
Error: Data provider could not be initialized
Error: Invalid use of Null: 'Replace'
Error: Specified driver could not be loaded due to system error 5 (Oracle in OraHome92)
How can I add new ODBC Datasource
Error: Too many fields defined
Error: I enter correct login and password but receive Invalid Login error. I use SQL Server.
I cannot find ODBC Administrator applet on Windows 2000 machine
I cannot connect to my Excel (Access) database
Where can I download latest ODBC drivers
How to work with Access database stored on the remote computer?
Reserved Access, T-SQL, ODBC keywords.
Order ASPRunner online

 
  ASPRunner manual


Working with projects

 

Project structure

With ASPRunner, you can save all your settings in a single project file and do not have to go through individual files if you simply need to change a single label or field format.

For each project ASPRunner saves to its own directory with the following subdirectories:

  1. visual - Contains modified visual templates.

  2. tmp - Temporary storage of visual templates.
  3. output - Directory with output files. You can change or rename the Output directory.

The default directory for a new project is C:/Documents and Settings/Name/My Documents/ASPRunnerProjects/project_name. The Project file will be saved in the project directory as project_name.aspr.

When you open a project created with a previous version of ASPRunner, you are prompted to choose a project directory. After you select a directory, your project file is copied to it. Then the next time you open your project it will be from the folder you selected, not from the original location.

If you upload files to the Web server using third party FTP client software, you must upload the entire contents of the output directory.

When you make a backup of your project, you should include all files in the project directory together with all subdirectories. At a minimum, you should backup the project file itself along with all files in the visual directory.

Click the "Project" button and select from the drop down list to open an existing project or to save the current one.

Creating new a project

When you create a new project you have two options:

  • Create a new project from scratch using Application Wizard

  • Create a project from the template

More info on templates that are shipped with ASPRunner.

Opening an existing project

To open existing project or save a current one, click Project button any time.

Saving a project

If you want to save the current project under a different name - for example, development purposes or to create a backup - select the "Save Project As" option. A new project directory will be created and all necessary project files will be copied to it.

Note: ASPRunner creates a new project automatically upon startup.

Saving your project as a Template

You can save your project as a template.

In this case, your database along with your project file and all files you have edited with the visual editor will be saved.

Note: Save Project As Template is available only for those projects that have been built using MS Access database (MySql).

While saving Project As Template you need to type in the template name you wish your project to be saved under. The template will be saved in the Business Templates Directory ( by default in C:\Program Files\ASPRunnerPro4.0\templates\business).

Note: After your template is saved, you can add files that are not generated by ASPRunner to the template directory.

After that saved Template will be available on the list of templates when you create a new project.

You can also add a thumbnail image to the template that will be displayed on templates list. Place an image named preview.gif (JPG and PNG formats are supported also) to template folder. Image size should be 130x97.

Add template to project

You can create new project using two templates or add a template to existing project. To aviod replacing template tables with existing all ASPRunner business templates (tables and files) have prefix.

 

The CHM file was converted to HTML by chm2web software.