The Page object supports methods that simplify the creation and layout of Active Server Pages (ASP) HTML pages.
Page object methods fall into the following categories:
The Page object supports the following property.
Property | Description |
---|---|
Context | A read-only value that contains the Microsoft® Internet Information Server (IIS) scripting context. |
VirtualDirectory | Name of the virtual directory for the site. |
The Page object supports the following methods.
Method | Description |
---|---|
Check | Generates the word CHECKED based upon a supplied value. |
Encode | Encodes text in HTML |
GetShopperID | Returns the unique shopper ID for the current shopper. |
HTMLEncode | Encodes text in HTML. |
Option | Generates an option button on a page. |
ProcessVerifyWith | Copies the contents of hidden fields created using the VerifyWith method into an OrderForm object’s _verify_with Dictionary object. |
PutShopperID | Writes the specified shopper ID for use in a URL or SURL (or as a cookie). |
RequestDate | Retrieves a value from a URL query string or form post variable and converts it to a date value (Date Variant) based on the specified or default locale |
RequestDateTime | Retrieves a value from a URL query string or form post variable and converts the it to a date/time value (Date Variant), based on the specified or default locale. |
RequestDefault | Retrieves a value from a URL query string or form post variable and returns the value as a string. |
RequestFloat | Retrieves a value from a URL query string or form post variable and converts it to a floating-point value based on the specified or default locale, checks the value against a specified range, and then validates the value, based on the specified locale. |
RequestMoneyAsNumber | Retrieves a value from a URL query string or form post variable and converts it to a number in the base monetary units of the specified or default locale. |
RequestNumber | Retrieves a value from a URL query string or form post variable and converts it to a number based on the specified or default locale. |
RequestString | Retrieves a value from a URL query string or form post variable and performs string processing on it, based on the specified locale. |
RequestTime | Retrieves a value from a URL query string or form post variable and converts the string to a Date Variant, based on the specified or default locale. |
SiteRoot | Returns the physical directory that contains the Commerce Server site. |
SURL | Generates a secure URL based on the local path to a file. This URL includes the shopper ID, where applicable. |
SURLPrefix | Returns the secure root domain, which can be used as the prefix of a complete URL |
URL | Generates a full URL based on the local path to a file. This URL can include arguments and the shopper ID, where applicable. |
URLArgs | Generates a series of query string arguments appropriate for passing in a URL. |
URLEncode | Applies URL encoding rules to a specified string. |
URLPrefix | Returns the non-secure root domain, which can be used as the prefix to a complete URL. |
URLShopperArgs | Generates a series of query string arguments appropriate for passing in a URL, and includes in the arguments the shopper ID if the StandardSManager has been initialized to URL mode. |
VerifyWith | Outputs to the page hidden fields that contain verification values. |
The following methods are included only for backward compatibility with sites created in Commerce Server 2.0, and will be discontinued in future releases.
Method | Description |
---|---|
IncrShopperPerfCtrs | For backward compatibility only. |
Messages | For backward compatibility only. Use the Language property of the PipeContext object. |
RunPlan | For backward compatibility only. |
RunProduct | For backward compatibility only. |
RunPurchase | For backward compatibility only. |