CodeCharge Studio

ScriptPath Variable (ASP)

Applies to

Page Context

Type

string

Access

read/write

Syntax

ScriptPath [=value]

Description

This variable contains the absolute file system path to the current page. The variable is used to load the template file for the current page and can be altered to load the template file from a different location.

Examples

The following example sets script path to a site's templates directory. All templates will be loaded from that directory (assuming code is inserted on every page in On Initialize View event).
ScriptPath = Server.MapPath("./templates/")

See also

TemplateFileName Variable
FileName Variable


On-line, printable versions and updates