Quick jump |
When a generated app runs a page, the page goes through a life cycle in which it performs a series of processing steps. These include initialization, retrieving data, instantiating controls and rendering.
It is important to understand the page life cycle so that you can write code at the appropriate life-cycle stage for the effect you intend.
Occurs upon loading each page before any processing takes place. Use this event to override any global ASPRunner.NET variables.
Check the description area in the Event editor to find the list of available global variables. |
|
Occurs upon loading each page before any processing takes place, right after AfterAppInit. Use this event to override any table-specific ASPRunner.NET variables.
Check the description area in the Event editor to find the list of available global variables. |
|
This event is executed for each Menu item before a page is displayed in the browser. Use this event to modify or hide menu items. |
Occurs when the page processing starts and the database connection is established.
Use this event for the following: •change the database connection to point to another database; •read request data and populate session variables; |
|
This event is executed once for each record to be deleted.
Use this event for the following: •prevent a record from being deleted; |
|
Occurs once for each record after it was deleted. |
|
Occurs after a bulk delete operation. |
|
Occurs after a database record is retrieved from the database before formatting is applied.
Use this event for the following: •modify the value of any column; •prevent certain records from being displayed on the page; •calculate/display your totals and subtotals. |
|
Occurs after a database record is retrieved from the database and formatting is applied.
Use this event for the following: •display an empty row or a header between group of records; |
|
Occurs after the page is processed and ready to be displayed in the browser.
Use this event for the following: •define a new template variable or change the value of an existing one; •display a different template. |
|
Occurs after the page is displayed in the browser. Use this event to work with the "edit" controls using the JavaScript API. |
Occurs when the page processing starts and the database connection is established.
Use this event for the following: •change the database connection to point to another database; •read request data and populate session variables; |
|
Occurs before new data is written to the database. Works in all add/edit modes: Inline Add/Edit, Regular Add/Edit and an Add/Edit page in a popup.
Use these events for the following: •prevent a data record from being added or edited; •save old record in another table; •add a record to the log table. |
|
Occurs after data was written to the database. Works in all add/edit modes: Inline Add/Edit, Regular Add/Edit and an Add/Edit page in a popup.
Use this event for the following: •add a record to the log table. |
|
Occurs before the record is displayed (before the BeforeShowEdit event). |
|
Occurs after the page is processed and ready to be displayed in the browser.
Use this event for the following: •define a new template variable or change the value of an existing one; •display a different template. |
|
Occurs after the page is displayed in the browser. Use this event to work with the "edit" controls using the JavaScript API. |
Occurs when the page processing starts and the database connection is established.
Use this event for the following: •change the database connection to point to another database; •read request data and populate session variables; |
|
Occurs before the user logs in or the new user data is written to the database.
Use this event for the following: •prevent the user from being logged in or registered; •add a record to the log table. |
|
Occurs after the user is logged in or registered successfully.
Use this event for the following: •redirect user to another page; •add a record to the log table. |
|
Occurs if the user was not logged in or was not registered.
|
|
Occurs after the page is processed and ready to be displayed in the browser.
Use this event for the following: •define a new template variable or change the value of an existing one; •display a different template. |
|
Occurs after the page is displayed in the browser. Use this event to work with the "edit" controls using the JavaScript API. |
View/Search/Report/Chart pages
Occurs when the page processing starts and the database connection is established.
Use this event for the following: •change the database connection to point to another database; •read request data and populate session variables; |
|
Occurs before the record is displayed (before the BeforeShowView event). |
|
Occurs after the page is processed and ready to be displayed in the browser.
Use this event for the following: •define a new template variable or change the value of an existing one; •display a different template. |
|
Occurs after the page is displayed in the browser. Use this event to work with the "edit" controls using the JavaScript API. |
This event is executed before the import is started. |
|
Occurs before a record is inserted. Use this event to modify the record before it is inserted. |
|
This event is executed after the import is finished. |
See also:
•ASPRunner.NET session variables