Share via


WebPageBase Class

Serves as the base class for classes that represent an ASP.NET Razor page.

Inheritance Hierarchy

System.Object
  System.Web.WebPages.WebPageExecutingBase
    System.Web.WebPages.WebPageRenderingBase
      System.Web.WebPages.WebPageBase
        System.Web.WebPages.WebPage

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public MustInherit Class WebPageBase _
    Inherits WebPageRenderingBase
'Usage
Dim instance As WebPageBase
public abstract class WebPageBase : WebPageRenderingBase
public ref class WebPageBase abstract : public WebPageRenderingBase
[<AbstractClassAttribute>]
type WebPageBase =  
    class 
        inherit WebPageRenderingBase 
    end
public abstract class WebPageBase extends WebPageRenderingBase

The WebPageBase type exposes the following members.

Constructors

  Name Description
Protected method WebPageBase Initializes the WebPageBase class for use by an inherited class instance. This constructor can only be called by an inherited class.

Top

Properties

  Name Description
Public property App (Inherited from WebPageExecutingBase.)
Public property AppState (Inherited from WebPageExecutingBase.)
Public property Cache (Inherited from WebPageRenderingBase.)
Public property Context When overridden in a derived class, gets or sets the HttpContextBase object that is associated with a page. (Inherited from WebPageExecutingBase.)
Public property Culture (Inherited from WebPageRenderingBase.)
Protected property DisplayMode (Inherited from WebPageRenderingBase.)
Public property IsAjax (Inherited from WebPageRenderingBase.)
Public property IsPost (Inherited from WebPageRenderingBase.)
Public property Layout Gets or sets the path of a layout page. (Overrides WebPageRenderingBase.Layout.)
Public property Output Gets the current TextWriter object for the page.
Public property OutputStack Gets the stack of TextWriter objects for the current page context.
Public property Page Provides property-like access to page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.Page.)
Public property PageContext (Inherited from WebPageRenderingBase.)
Public property PageData Provides array-like access to page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.PageData.)
Public property Profile (Inherited from WebPageRenderingBase.)
Public property Request (Inherited from WebPageRenderingBase.)
Public property Response (Inherited from WebPageRenderingBase.)
Public property Server (Inherited from WebPageRenderingBase.)
Public property Session (Inherited from WebPageRenderingBase.)
Public property TemplateInfo (Inherited from WebPageRenderingBase.)
Public property UICulture (Inherited from WebPageRenderingBase.)
Public property UrlData (Inherited from WebPageRenderingBase.)
Public property User (Inherited from WebPageRenderingBase.)
Public property VirtualPath (Inherited from WebPageExecutingBase.)
Public property VirtualPathFactory (Inherited from WebPageExecutingBase.)

Top

Methods

  Name Description
Protected method BeginContext(Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected method BeginContext(TextWriter, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected method BeginContext(String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected method BeginContext(TextWriter, String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected method ConfigurePage When overridden in a derived class, configures the current web page based on the configuration of the parent web page.
Public methodStatic member CreateInstanceFromVirtualPath Creates a new instance of the WebPageBase class by using the specified virtual path.
Protected method CreatePageFromVirtualPath Attempts to create a WebPageBase instance from a virtualPath and wraps complex compiler exceptions with simpler messages
Public method DefineSection Called by content pages to create named content sections.
Protected method EndContext(Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected method EndContext(TextWriter, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected method EndContext(String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected method EndContext(TextWriter, String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Public method Equals (Inherited from Object.)
Public method Execute (Inherited from WebPageExecutingBase.)
Public method ExecutePageHierarchy() Executes the code in a set of dependent web pages. (Overrides WebPageRenderingBase.ExecutePageHierarchy().)
Public method ExecutePageHierarchy(WebPageContext, TextWriter) Executes the code in a set of dependent web pages by using the specified parameters.
Public method ExecutePageHierarchy(WebPageContext, TextWriter, WebPageRenderingBase) Executes the code in a set of dependent web pages by using the specified context, writer, and start page.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Protected method GetOutputWriter Returns the text writer instance that is used to render the page. (Overrides WebPageExecutingBase.GetOutputWriter().)
Public method GetType (Inherited from Object.)
Public method Href (Inherited from WebPageExecutingBase.)
Protected method InitializePage Initializes the current page.
Public method IsSectionDefined Returns a value that indicates whether the specified section is defined in the page.
Protected method MemberwiseClone (Inherited from Object.)
Protected method NormalizeLayoutPagePath (Inherited from WebPageExecutingBase.)
Public method NormalizePath (Inherited from WebPageExecutingBase.)
Public method PopContext Returns and removes the context from the top of the OutputStack instance.
Public method PushContext Inserts the specified context at the top of the OutputStack instance.
Public method RenderBody In layout pages, renders the portion of a content page that is not within a named section.
Public method RenderPage Renders the content of one page within another page. (Overrides WebPageRenderingBase.RenderPage(String, Object[]).)
Public method RenderSection(String) In layout pages, renders the content of a named section.
Public method RenderSection(String, Boolean) In layout pages, renders the content of a named section and specifies whether the section is required.
Public method ToString (Inherited from Object.)
Public method Write(Object) Writes the specified object as an HTML-encoded string. (Overrides WebPageExecutingBase.Write(Object).)
Public method Write(HelperResult) Writes the specified HelperResult object as an HTML-encoded string. (Overrides WebPageExecutingBase.Write(HelperResult).)
Public method WriteAttribute (Inherited from WebPageExecutingBase.)
Public method WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) (Inherited from WebPageExecutingBase.)
Protected method WriteAttributeTo(String, TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) (Inherited from WebPageExecutingBase.)
Public method WriteLiteral Writes the specified object without HTML-encoding it first. (Overrides WebPageExecutingBase.WriteLiteral(Object).)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.WebPages Namespace