Page.URLPrefix

Ee783963.c++_on(en-US,CS.10).gifEe783963.vb_off(en-US,CS.10).gif

Use this method to return the root domain as determined by the InsecureHostName value. The returned string can be used as the prefix to a complete URL.

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

  • This method is included for backwards compatibility with Site Server 3.0 Commerce Edition. See the AuthManager object, which provides similar functionality to that found in the URLPrefix method. Using the AuthManager methodsĀ  is the preferred way of adding this type of functionality to your site, and will ensure better compatibility with future versions of Microsoft Commerce Server.

Definition

Function URLPrefix() As String

Parameters

None.

Return Values

If this method completes successfully, it returns a String that contains the root domain string.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, seeĀ Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

To generate the domain for the secure host, use the Page.SURLPrefix method.

See Also

Page Object

AuthManager Object

Page.SURLPrefix

Page.VirtualDirectory

Page.SURL

Page.SURLPrefix

Page.URL

Page.URLShopperArgs

Page.URLArgs


All rights reserved.