ASPRunner session variables 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


ASPRunner session variables

 

Variable name

Description

SESSION("UserID")

Logged user ID

SESSION("GroupID")

GroupID that user belongs to. Populated if User Group Security turned on.

SESSION("language")

SESSION("MyURL")

If user is trying to access one of password-protected pages directly i.e. pagename_edit.asp?editid1=3 this page address is saved in SESSION("MyURL") variable and user is redirected to the login page.

After successful login user will be redirected to that page.

SESSION("AccessLevel")

ACCESS_LEVEL_GUEST - guest user

ACCESS_LEVEL_USER - regular user

ACCESS_LEVEL_ADMINGROUP - user belongs to the admin group

ACCESS_LEVEL_ADMIN - obsolete

 

SESSION("OwnerID")

OwnerID value from the login table. Obsolete

SESSION("_<table name>_OwnerID")

OwnerID value from the login table that applies to <table name> table.

SESSION("<table name>_search")

0 - show all records

1 - basic search

2 - advanced search

SESSION("<table name>_searchfield")

Basic search field

SESSION($strTableName."_searchoption")

Basic search option (Equals, Contains, etc)

SESSION($strTableName."_searchfor")

Basic search for phrase

SESSION($strTableName."_pagenumber")

Current page number

SESSION($strTableName."_asearchnot")

Advanced search - array with NOT option value for each field

SESSION($strTableName."_asearchopt")

Advanced search - array with search option value for each field (Equals, Contains etc)

SESSION($strTableName."_asearchfor")

Advanced search - array with with search for value for each field

SESSION($strTableName."_asearchfor2")

Advanced search - array with with second search for value for each field (Between search)

SESSION($strTableName."_asearchfortype")

AND or OR search

SESSION($strTableName."_mastertable")

Master table name

SESSION($strTableName."_masterkey".$i)

Master table foreign key values

SESSION($strTableName."_orderby")

Order by clause (aFieldName or dFieldName). "a" means ascending, "b" means descending sort order.

SESSION($strTableName."_pagesize")

Number of records per page

SESSION($strTableName."_sql")

SQL query without WHERE and ORDER BY. Populated on the list page to be used on Print/Export pages.

SESSION($strTableName."_where")

WHERE clause. Populated on the list page to be used on Print/Export pages.

SESSION($strTableName."_order")

ORDER By clause ("Order by make asc"). Populated on the list page to be used on Print/Export pages.

SESSION("BackURL")

URL to return after password was changed

SESSION($strTableName."_SelectedSQL")

Export page - SQL query when page is in "export selected" mode

SESSION($strTableName."_SelectedWhere")

Export page - WHERE clause when page is in "export selected" mode

 

 

The CHM file was converted to HTML by chm2web software.