HelperPage HelperPage HelperPage Class

Definition

Represents a base class for pages that is used when ASP.NET compiles a .cshtml or .vbhtml file and that exposes page-level and application-level properties and methods.

public class HelperPage
type HelperPage = class
Public Class HelperPage
Inheritance
HelperPageHelperPageHelperPage

Constructors

HelperPage() HelperPage() HelperPage()

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the HelperPage class.

Properties

App App App

Gets the application-state data as a DynamicObject object that callers can use to create and access custom application-scoped properties.

AppState AppState AppState

Gets a reference to global application-state data that can be shared across sessions and requests in an ASP.NET application.

Cache Cache Cache

Gets the cache object for the current application domain.

Context Context Context

Gets the HttpContextBase object that is associated with a page.

CurrentPage CurrentPage CurrentPage

Gets the current page for this helper page.

HelperVirtualPath HelperVirtualPath HelperVirtualPath

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the path of the helper page.

Html Html Html

Gets the HtmlHelper object that is associated with a page.

IsAjax IsAjax IsAjax

Gets a value that indicates whether Ajax is being used during the request of the web page.

IsPost IsPost IsPost

Gets a value that indicates whether the current request is a post (submitted using the HTTP POST verb).

Model Model Model

Gets the model that is associated with a page.

ModelState ModelState ModelState

Gets the state data for the model that is associated with a page.

Page Page Page

Gets property-like access to page data that is shared between pages, layout pages, and partial pages.

PageContext PageContext PageContext

Gets and sets the HTTP context for the web page.

PageData PageData PageData

Gets array-like access to page data that is shared between pages, layout pages, and partial pages.

Request Request Request

Gets the HttpRequest object for the current HTTP request.

Response Response Response

Gets the HttpResponse object for the current HTTP response.

Server Server Server

Gets the HttpServerUtility object that provides methods that can be used as part of web-page processing.

Session Session Session

Gets the System.Web.HttpSessionState object for the current HTTP request.

UrlData UrlData UrlData

Gets data related to the URL path.

User User User

Gets a user value based on the HTTP context.

VirtualPath VirtualPath VirtualPath

Gets the virtual path of the page.

Methods

BeginContext(String, Int32, Int32, Boolean) BeginContext(String, Int32, Int32, Boolean) BeginContext(String, Int32, Int32, Boolean)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Puts all the helper statements into the context of the helper page.

BeginContext(TextWriter, String, Int32, Int32, Boolean) BeginContext(TextWriter, String, Int32, Int32, Boolean) BeginContext(TextWriter, String, Int32, Int32, Boolean)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Puts all the helper statements into the context of the helper page.

EndContext(String, Int32, Int32, Boolean) EndContext(String, Int32, Int32, Boolean) EndContext(String, Int32, Int32, Boolean)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the end of context block.

EndContext(TextWriter, String, Int32, Int32, Boolean) EndContext(TextWriter, String, Int32, Int32, Boolean) EndContext(TextWriter, String, Int32, Int32, Boolean)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the end of context block.

Href(String, Object[]) Href(String, Object[]) Href(String, Object[])

Builds an absolute URL from an application-relative URL by using the specified parameters.

WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[])

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Writes an attribute associated with the helper.

WriteLiteralTo(TextWriter, Object) WriteLiteralTo(TextWriter, Object) WriteLiteralTo(TextWriter, Object)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Writes a literal object to the helper.

WriteLiteralTo(TextWriter, HelperResult) WriteLiteralTo(TextWriter, HelperResult) WriteLiteralTo(TextWriter, HelperResult)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Writes a helper result object to the helper.

WriteTo(TextWriter, Object) WriteTo(TextWriter, Object) WriteTo(TextWriter, Object)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Writes an object to the helper.

WriteTo(TextWriter, HelperResult) WriteTo(TextWriter, HelperResult) WriteTo(TextWriter, HelperResult)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Writes a helper result object to the helper.

Applies to