Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WebPageBase Class

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

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)
public abstract class WebPageBase : WebPageRenderingBase

The WebPageBase type exposes the following members.

  NameDescription
Protected methodWebPageBaseInitializes the WebPageBase class for use by an inherited class instance. This constructor can only be called by an inherited class.
Top
  NameDescription
Public propertyApp (Inherited from WebPageExecutingBase.)
Public propertyAppState (Inherited from WebPageExecutingBase.)
Public propertyCache (Inherited from WebPageRenderingBase.)
Public propertyContextWhen overridden in a derived class, gets or sets the HttpContextBase object that is associated with a page. (Inherited from WebPageExecutingBase.)
Public propertyCulture (Inherited from WebPageRenderingBase.)
Protected propertyDisplayMode (Inherited from WebPageRenderingBase.)
Public propertyIsAjax (Inherited from WebPageRenderingBase.)
Public propertyIsPost (Inherited from WebPageRenderingBase.)
Public propertyLayoutGets or sets the path of a layout page. (Overrides WebPageRenderingBase.Layout.)
Public propertyOutputGets the current TextWriter object for the page.
Public propertyOutputStackGets the stack of TextWriter objects for the current page context.
Public propertyPageProvides property-like access to page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.Page.)
Public propertyPageContext (Inherited from WebPageRenderingBase.)
Public propertyPageDataProvides array-like access to page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.PageData.)
Public propertyProfile (Inherited from WebPageRenderingBase.)
Public propertyRequest (Inherited from WebPageRenderingBase.)
Public propertyResponse (Inherited from WebPageRenderingBase.)
Public propertyServer (Inherited from WebPageRenderingBase.)
Public propertySession (Inherited from WebPageRenderingBase.)
Public propertyTemplateInfo (Inherited from WebPageRenderingBase.)
Public propertyUICulture (Inherited from WebPageRenderingBase.)
Public propertyUrlData (Inherited from WebPageRenderingBase.)
Public propertyUser (Inherited from WebPageRenderingBase.)
Public propertyVirtualPath (Inherited from WebPageExecutingBase.)
Public propertyVirtualPathFactory (Inherited from WebPageExecutingBase.)
Top
  NameDescription
Protected methodBeginContext(Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodBeginContext(TextWriter, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodBeginContext(String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodBeginContext(TextWriter, String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodConfigurePageWhen overridden in a derived class, configures the current web page based on the configuration of the parent web page.
Public methodStatic memberCreateInstanceFromVirtualPathCreates a new instance of the WebPageBase class by using the specified virtual path.
Protected methodCreatePageFromVirtualPath
Public methodDefineSectionCalled by content pages to create named content sections.
Protected methodEndContext(Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodEndContext(TextWriter, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodEndContext(String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Protected methodEndContext(TextWriter, String, Int32, Int32, Boolean) (Inherited from WebPageExecutingBase.)
Public methodEquals (Inherited from Object.)
Public methodExecute (Inherited from WebPageExecutingBase.)
Public methodExecutePageHierarchy()Executes the code in a set of dependent web pages. (Overrides WebPageRenderingBase.ExecutePageHierarchy().)
Public methodExecutePageHierarchy(WebPageContext, TextWriter)Executes the code in a set of dependent web pages by using the specified parameters.
Public methodExecutePageHierarchy(WebPageContext, TextWriter, WebPageRenderingBase)Executes the code in a set of dependent web pages by using the specified context, writer, and start page.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetOutputWriterReturns the text writer instance that is used to render the page. (Overrides WebPageExecutingBase.GetOutputWriter().)
Public methodGetType (Inherited from Object.)
Public methodHref (Inherited from WebPageExecutingBase.)
Protected methodInitializePageInitializes the current page.
Public methodIsSectionDefinedReturns a value that indicates whether the specified section is defined in the page.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNormalizeLayoutPagePath (Inherited from WebPageExecutingBase.)
Public methodNormalizePath (Inherited from WebPageExecutingBase.)
Public methodPopContextReturns and removes the context from the top of the OutputStack instance.
Public methodPushContextInserts the specified context at the top of the OutputStack instance.
Public methodRenderBodyIn layout pages, renders the portion of a content page that is not within a named section.
Public methodRenderPageRenders the content of one page within another page. (Overrides WebPageRenderingBase.RenderPage(String, Object[]).)
Public methodRenderSection(String)In layout pages, renders the content of a named section.
Public methodRenderSection(String, Boolean)In layout pages, renders the content of a named section and specifies whether the section is required.
Public methodToString (Inherited from Object.)
Public methodWrite(Object)Writes the specified object as an HTML-encoded string. (Overrides WebPageExecutingBase.Write(Object).)
Public methodWrite(HelperResult)Writes the specified HelperResult object as an HTML-encoded string. (Overrides WebPageExecutingBase.Write(HelperResult).)
Public methodWriteAttribute (Inherited from WebPageExecutingBase.)
Public methodWriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) (Inherited from WebPageExecutingBase.)
Protected methodWriteAttributeTo(String, TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) (Inherited from WebPageExecutingBase.)
Public methodWriteLiteralWrites the specified object without HTML-encoding it first. (Overrides WebPageExecutingBase.WriteLiteral(Object).)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.