Page.SURLPrefix Method

The SURLPrefix method returns the secure root domain as determined by the site dictionary’s SecureHostName value. The returned string can be used as the prefix of a complete URL.

Syntax

Page.SURLPrefix()

Parameters

None.

Remarks

During application development, you can set the DisableHTTPS property of the site dictionary is set to one (1), which causes the SURLPrefix method to use the NonsecureHostName value as the host name. The SURLPrefix method generates a secure URL only if Site.DisableHTTPS is set to zero (0).

Example

The following script:

mscsPage.SURLPrefix()

returns the following string, assuming the secure host domain is www.microsoft.com:

https://www.microsoft.com

Related Topics


© 1997-1998 Microsoft Corporation. All rights reserved.