Master-detail relationship Home

Introduction
Welcome
System requirements
Licensing details
What is the registration
Using ASPRunner.NET
Working with projects
Connecting to the database
Datasource tables, list fields, searchable fields
Choose pages
Login page
User login settings
Avanced Security Settings
User group permissions
Fields order and totals
Miscellaneous settings
Choose theme
Visual Editor
About
Toolbars
Page Elements
Formatting options
Validation types
Lookup wizard
Events
Output directory settings
After you done
FTP upload
FrontPage Publishing
Advanced topics
ODBC
Master-details relationship
Troubleshooting "Operation must use an updateable query" errors
Connecting to database
Connecting to MS Access database
Connecting to MS SQL Server database
Connecting to MySQL database
Connecting to Oracle database
Publishing ASP.NET application to the remote Web server
Using FTP client to publish ASP.NET pages to the remote Web server
Using FrontPage to publish ASP.NET pages to the remote Web server
Events
More about events
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 exist
Display a message on the WEB page
Redirect to another page
Custom code
Sample code
Show list of customer orders
Before deleting a record check if related record exist
Check if start date is earlier then end date
Speed up data entry using events
Frequently Asked Questions
Error: Could not load type ...
Error: Login failed for user '(null)'
Error: Login failed for user 'MACHINE_NAME\IUSR_MACHINE_NAME'
Error: Operation must use an updateable query
Error: Syntax error in UPDATE statement
Error: Syntax error in INSERT INTO statement
Error: Could not find MySQL ODBC 3.51 driver
Error: Client does not support authentication protocol
Error: Could not access CDO.Message object
How can I add new ODBC Datasource
I cannot find ODBC Administrator applet on Windows 2000 machine
I cannot connect to my Excel (Access) database
Order ASPRunner.NET online

 
  ASPRunner.NET manual


More about events

 

Events are pieces of ASP.NET code that executed before or after record was added, edited, deleted, when new users registers etc. Typical events send an email with old or new data record, save data in another table, check record uniqueness, show related to current record info.

Typical parameters passed to events

parNewValues - OleDbParameterCollection.

Each field on the Add/Edit form represented as 'Field type'-'Field value' pair

Example of usage:

Page.Response.Write(parNewValues(1).OleDbType &" - "& parNewValues(1).Value)

Where - WHERE clause that points to current record to be edited or deleted

Example of usage:

Dim sSQLSelect As String = "select * from [Order details] where " & where

Dim cn As New OleDbConnection(func.GetConnectionStr())

Dim cmdSelect As OleDbCommand = New OleDbCommand(sSQLSelect, cn)

cmdSelect.CommandType = CommandType.Text

...

 

ASPRunner.NET comes with set of handy predefined code snippets that you can use in Events.

Sample code snippets

send simple email

send email with new data

save new data in another table

insert a record into another table

check if specific record exist

display a message on the WEB page

redirect to another page

custom code

Here are some real life events

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

The CHM file was converted to HTML by chm2web software.