Export (0) Print
Expand All

Page Object

Commerce Server 2000
Ee798120.c++_on(en-US,CS.10).gif Ee798120.vb_off(en-US,CS.10).gif

Use this object to simplify forms processing in Active Server Pages (ASP).

ProgID:  Commerce.Page (Externally creatable)
COM Class Name:  MSCSPage_3_0
Type Library Name:  Commerce -- MSCSAspHelp Type Library
DLL Name:  MSCSAspHelp.dll
Threading Model:  Both

Ee798120.important(en-US,CS.10).gif Important

  • This object is included for backward compatibility with Site Server 3.0 Commerce Edition. For more information, see the AuthManager and AppFrameWork objects, which provide similar functionality to many of the methods in this object.

The Page object methods fall into the following categories:

  • Formatting methods. These methods include Encode, Option, and Check. These methods make it possible for you to easily format HTML page items, and where applicable, to determine HTML item values based upon a run-time evaluation of other variables used in your page.

  • Validation methods. These methods begin with Request. They are used to retrieve values from a URL query string, convert the values to given data types based on a locale value, and validate these values against a specified range.

The single property of the Page object is shown in the following table.

PropertyTypeDescription
ContextIDispatchA value that contains the Microsoft Internet Information Services (IIS) scripting context.

This property is read-only.


The methods of the Page object are shown in the following table.

MethodDescription
CheckGenerates the word CHECKED for use in an HTML page based upon a supplied value.
EncodeEncodes text in HTML.
GetShopperIdReturns the unique shopper ID for the current shopper.
HTMLEncodeEncodes text in HTML.
OptionGenerates an option button on a page.
ProcessVerifyWithCopies the contents of hidden fields created using the VerifyWith method into an OrderForm object's _verify_with Dictionary object.
PutShopperIdWrites the specified shopper ID for use in a URL or a secure URL (or as a cookie).
RequestDateRetrieves 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.
RequestDateTimeRetrieves a value from a URL query string or form post variable and converts it to a date/time value (Date Variant), based on the specified or default locale.
RequestDefaultRetrieves a value from a URL query string or form post variable and returns the value as a string.
RequestFloatRetrieves 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. It then checks the value against a specified range and validates the value, based on the specified locale.
RequestMoneyAsNumberRetrieves 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.
RequestNumberRetrieves a value from a URL query string or form post variable and converts it to a number, based on the specified or default locale.
RequestStringRetrieves a value from a URL query string or form post variable and performs string processing on it, based on the specified locale.
RequestTimeRetrieves 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.
SiteRootReturns the physical directory that contains the Commerce Server site.
SURLGenerates a secure URL based on the local path to a file. This URL includes the shopper ID, where applicable.
SURLPrefixReturns the secure root domain, which can be used as the prefix of a complete URL.
URLGenerates a full URL based on the local path to a file. This URL can include arguments and the shopper ID, where applicable.
URLArgsGenerates a series of query string arguments appropriate for passing in a URL.
URLEncodeApplies URL encoding rules to a specified string.
URLPrefixReturns the non-secure root domain, which can be used as the prefix to a complete URL.
URLShopperArgsGenerates a series of query string arguments appropriate for passing in a URL. It also includes in the arguments the shopper ID if the StandardSManager has been initialized to URL mode.
VerifyWithSends outputs to the page hidden fields that contain verification values.
VirtualDirectoryReturns the name of the s for the site.

See Also

Backward Compatibility Objects

AppFrameWork Object

AuthManager Object


All rights reserved.
Show:
© 2014 Microsoft