ASP variable
Variables for storing information.
Try - Example
Declare variables
Variables for storing information. This example demonstrates how to declare variables, assign values to variables and use the variables in the program.
Declare an array
Array for storing a series of related data items. This example demonstrates how to declare an array to store the name.
Cycle generating HTML title
This example demonstrates how to generate cycle six different HTML headings.
Use Vbscript making greeting based on the time of
This example demonstrates how to display different messages to the user based on server time.
Make use of JavaScript greeting based on the time of
The example above demonstrates how to display different messages to the user based on server time, just different syntax only.
Lifetime of variables
Variables declared outside the subroutine can be any script to access and modify ASP files.
Variable declared in the subroutine is created and destroyed every time the execution of the subroutine. Subroutine outside the script can not access and modify the variable.
For variable declarations for multiple ASP files, set the variable declared as session variables or application variables.
Session Variables
Session variables are used to store a single user, and one application to all pages are valid. Stores the name, id and parameters Session typical information on.
Application variables
Application variables are also valid for one application to all pages. Application variables are used to store information for all users a specific application.