PagePorter Class Library

FpPage Class

FpPage is a base class for ASP.NET web pages in a web site. It is designed to give the user many of the features found in the Microsoft FrontPage product that are missing from the .NET platform such as shared borders, URL offset, and secure HTTP support.

For a list of all members of this type, see FpPage Members.

System.Object
   System.Web.UI.Control
      System.Web.UI.TemplateControl
         System.Web.UI.Page
            Parastream.Web.UI.FpPage

[Visual Basic]
Public Class FpPage
    Inherits Page
[C#]
public class FpPage : Page

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

FpPage adds several new capabilities to its parent class Page. FrontPage shared borders are controlled by the Borders, TopBorder, LeftBorder, RightBorder, BottomBorder, BorderSpacing, BorderDirectory, TopBorderName, LeftBorderName, RightBorderName, BottomBorderName, PageAlign, and PageWidth properties, and may be accessesd by the TopBorderControl, LeftBorderControl, RightBorderControl, and BottomBorderControl methods. Request redirection is controlled by the HostName, Port, and Security properties.

The Microsoft Office FrontPage themes properties are MsTheme and MsThemeObject. There's a general-purpose Hashtable for use by controls or other objects contained in a FpPage object that is accessible through the Hashtable property. FpPage may redirect requests if the HostName, Port, or Security properties are used. If the requested URL doesn't match the values specified by these properties, the request is redirected to a new URL that does. This feature can be very useful in cases where you need to enforce a particular host name for your SSL certificate. For example, the Parastream web site uses this technique to ensure that requests to secure pages go to https://www.parastream.com instead of https://parastream.com.

FpPage supports the FrontPage shared borders by inserting the shared border controls inside the HtmlForm. This implies two things: There must be a server-side form in the page, and there must not be anything of consequence between the <body> and <form> tags. If there is no <form runat=server> tag, there will be no shared borders inserted in the page. Visible HTML between the <body> and <form> tags will display before the top border; similarly, visible HTML between the </form> and </body> tags will display after the bottom border.

The shared border support includes two properties that are not available in the FrontPage environment. With the PageWidth property, you may set a fixed width for your pages, or use the default of "100%" for pages that occupy the entire client browser window width. If you specify a fixed width, you may use the PageAlign property to specify the alignment (None, Left, Center, or Right) of the page within the client browser window.

Requirements

Namespace: Parastream.Web.UI

Assembly: FpCtrlsBase (in FpCtrlsBase.dll)

See Also

FpPage Members | Parastream.Web.UI Namespace