PagePorter Class Library

FpPage.HostName Property

Gets or sets the host name override. A blank name means no override.

[Visual Basic]
Public Property HostName As String
[C#]
public string HostName {get; set;}

Property Value

The page's host name override.

Remarks

FpPage will redirect the visitor's browser to the specified host name, if it is specified here.

The HostName override can be particularly useful with secure pages. For example, if the web host has a "www." alias (that means visitors can reach the site by going to https://mysite.com, or https://www.mysite.com), your SSL server certificate is only good for one of them.

HostName may be used in any security mode, allowing for host redirections in any mode. For example, if you want your visitors to always see your http://www.mysite.com alias in their address bars, you can set HostName to "www.mysite.com" and default security in your pages.

See Also

FpPage Class | Parastream.Web.UI Namespace