CodeCharge Studio

Redirect Variable (ASP)

Applies to

Page Context

Type

string

Access

read/write

Syntax

Redirect [=value]

Description

If not empty, the browser is redirected to the URL specified by the contents of this variable.The Redirect variable is declared as a global variable at the top of the page and can therefore be accessed in most of the events that occur later on in the page.

Note: The Redirect variable can be modified in the Button's onClick event, if the Return Page property of this Button is empty.

Example

The example below (placed in the After Execute Insert event) redirects the browser using a URL that specifies a URL parameter called article_id.
Dim max_id
max_id = CCDLookup("max(article_id)","articles","",DBInternet)
Redirect = "articles.asp?article_id=" & max_id

See Also

PathToRoot Variable
PathToCurrentPage Variable

Related Examples

Add URL Parameters to a Page
Dynamically Redirect Users to Another Page


On-line, printable versions and updates