Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ViewPage Class

 

Represents the properties and methods that are needed to render a view as a Web Forms page.

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


public class ViewPage : Page, IViewDataContainer

NameDescription
System_CAPS_pubmethodViewPage()

Initializes a new instance of the ViewPage class.

NameDescription
System_CAPS_protpropertyAdapter

(Inherited from Control.)

System_CAPS_pubpropertyAjax

Gets or sets the AjaxHelper object that is used to render HTML in Ajax scenarios.

System_CAPS_pubpropertyApplication

(Inherited from Page.)

System_CAPS_pubpropertyAppRelativeTemplateSourceDirectory

(Inherited from Control.)

System_CAPS_pubpropertyAppRelativeVirtualPath

(Inherited from TemplateControl.)

System_CAPS_pubpropertyAsyncTimeout

(Inherited from Page.)

System_CAPS_pubpropertyAutoPostBackControl

(Inherited from Page.)

System_CAPS_pubpropertyCache

(Inherited from Page.)

System_CAPS_protpropertyChildControlsCreated

(Inherited from Control.)

System_CAPS_pubpropertyClientID

(Inherited from Control.)

System_CAPS_pubpropertyClientIDMode

(Inherited from Control.)

System_CAPS_protpropertyClientIDSeparator

(Inherited from Control.)

System_CAPS_pubpropertyClientQueryString

(Inherited from Page.)

System_CAPS_pubpropertyClientScript

(Inherited from Page.)

System_CAPS_pubpropertyClientTarget

(Inherited from Page.)

System_CAPS_protpropertyContext

(Inherited from Page.)

System_CAPS_pubpropertyControls

(Inherited from Control.)

System_CAPS_pubpropertyCulture

(Inherited from Page.)

System_CAPS_protpropertyDesignMode

(Inherited from Control.)

System_CAPS_pubpropertyEnableTheming

(Inherited from TemplateControl.)

System_CAPS_pubpropertyEnableViewState

(Inherited from Page.)

System_CAPS_pubpropertyErrorPage

(Inherited from Page.)

System_CAPS_protpropertyEvents

(Inherited from Control.)

System_CAPS_pubpropertyForm

(Inherited from Page.)

System_CAPS_protpropertyHasChildViewState

(Inherited from Control.)

System_CAPS_pubpropertyHeader

(Inherited from Page.)

System_CAPS_pubpropertyHtml

Gets or sets the HtmlHelper object that is used to render HTML elements.

System_CAPS_pubpropertyID

(Inherited from Control.)

System_CAPS_protpropertyIdSeparator

(Inherited from Control.)

System_CAPS_pubpropertyIsAsync

(Inherited from Page.)

System_CAPS_pubpropertyIsCallback

(Inherited from Page.)

System_CAPS_protpropertyIsChildControlStateCleared

(Inherited from Control.)

System_CAPS_pubpropertyIsCrossPagePostBack

(Inherited from Page.)

System_CAPS_pubpropertyIsPostBack

(Inherited from Page.)

System_CAPS_pubpropertyIsPostBackEventControlRegistered

(Inherited from Page.)

System_CAPS_protpropertyIsTrackingViewState

(Inherited from Control.)

System_CAPS_pubpropertyIsValid

(Inherited from Page.)

System_CAPS_protpropertyIsViewStateEnabled

(Inherited from Control.)

System_CAPS_pubpropertyItems

(Inherited from Page.)

System_CAPS_protpropertyLoadViewStateByID

(Inherited from Control.)

System_CAPS_pubpropertyMaintainScrollPositionOnPostBack

(Inherited from Page.)

System_CAPS_pubpropertyMaster

(Inherited from Page.)

System_CAPS_pubpropertyMasterLocation

Gets or sets the path of the master view.

System_CAPS_pubpropertyMasterPageFile

(Inherited from Page.)

System_CAPS_pubpropertyMetaDescription

(Inherited from Page.)

System_CAPS_pubpropertyMetaKeywords

(Inherited from Page.)

System_CAPS_pubpropertyModel

Gets the Model property of the associated ViewDataDictionary object.

System_CAPS_pubpropertyModelBindingExecutionContext

(Inherited from Page.)

System_CAPS_pubpropertyModelState

(Inherited from Page.)

System_CAPS_pubpropertyNamingContainer

(Inherited from Control.)

System_CAPS_pubpropertyPage

(Inherited from Control.)

System_CAPS_pubpropertyPageAdapter

(Inherited from Page.)

System_CAPS_protpropertyPageStatePersister

(Inherited from Page.)

System_CAPS_pubpropertyParent

(Inherited from Control.)

System_CAPS_pubpropertyPreviousPage

(Inherited from Page.)

System_CAPS_pubpropertyRenderingCompatibility

(Inherited from Control.)

System_CAPS_pubpropertyRequest

(Inherited from Page.)

System_CAPS_pubpropertyResponse

(Inherited from Page.)

System_CAPS_pubpropertyRouteData

(Inherited from Page.)

System_CAPS_pubpropertyServer

(Inherited from Page.)

System_CAPS_pubpropertySession

(Inherited from Page.)

System_CAPS_pubpropertySite

(Inherited from Control.)

System_CAPS_pubpropertySkinID

(Inherited from Control.)

System_CAPS_pubpropertySmartNavigation

(Inherited from Page.)

System_CAPS_pubpropertyStyleSheetTheme

(Inherited from Page.)

System_CAPS_pubpropertyTempData

Gets the temporary data to pass to the view.

System_CAPS_pubpropertyTemplateControl

(Inherited from Control.)

System_CAPS_pubpropertyTemplateSourceDirectory

(Inherited from Control.)

System_CAPS_pubpropertyTheme

(Inherited from Page.)

System_CAPS_pubpropertyTitle

(Inherited from Page.)

System_CAPS_pubpropertyTrace

(Inherited from Page.)

System_CAPS_pubpropertyUICulture

(Inherited from Page.)

System_CAPS_protpropertyUniqueFilePathSuffix

(Inherited from Page.)

System_CAPS_pubpropertyUniqueID

(Inherited from Control.)

System_CAPS_pubpropertyUnobtrusiveValidationMode

(Inherited from Page.)

System_CAPS_pubpropertyUrl

Gets or sets the URL of the rendered page.

System_CAPS_pubpropertyUser

(Inherited from Page.)

System_CAPS_pubpropertyValidateRequestMode

(Inherited from Control.)

System_CAPS_pubpropertyValidators

(Inherited from Page.)

System_CAPS_pubpropertyViewBag

Gets the view bag.

System_CAPS_pubpropertyViewContext

Gets or sets the information that is used to render the view.

System_CAPS_pubpropertyViewData

Gets or sets a dictionary that contains data to pass between the controller and the view.

System_CAPS_protpropertyViewState

(Inherited from Control.)

System_CAPS_protpropertyViewStateIgnoresCase

(Inherited from Control.)

System_CAPS_pubpropertyViewStateMode

(Inherited from Control.)

System_CAPS_pubpropertyViewStateUserKey

(Inherited from Page.)

System_CAPS_pubpropertyVisible

(Inherited from Page.)

System_CAPS_pubpropertyWriter

Gets the text writer that is used to render the view to the response.

NameDescription
System_CAPS_protmethodAddedControl(Control, Int32)

(Inherited from Control.)

System_CAPS_pubmethodAddOnPreRenderCompleteAsync(BeginEventHandler, EndEventHandler)

(Inherited from Page.)

System_CAPS_pubmethodAddOnPreRenderCompleteAsync(BeginEventHandler, EndEventHandler, Object)

(Inherited from Page.)

System_CAPS_protmethodAddParsedSubObject(Object)

(Inherited from Control.)

System_CAPS_pubmethodApplyStyleSheetSkin(Page)

(Inherited from Control.)

System_CAPS_protmethodBuildProfileTree(String, Boolean)

(Inherited from Control.)

System_CAPS_protmethodClearCachedClientID()

(Inherited from Control.)

System_CAPS_protmethodClearChildControlState()

(Inherited from Control.)

System_CAPS_protmethodClearChildState()

(Inherited from Control.)

System_CAPS_protmethodClearChildViewState()

(Inherited from Control.)

System_CAPS_protmethodClearEffectiveClientIDMode()

(Inherited from Control.)

System_CAPS_protmethodConstruct()

(Inherited from TemplateControl.)

System_CAPS_protmethodCreateChildControls()

(Inherited from Control.)

System_CAPS_protmethodCreateControlCollection()

(Inherited from Control.)

System_CAPS_protmethodCreateHtmlTextWriter(TextWriter)

(Inherited from Page.)

System_CAPS_protmethodCreateResourceBasedLiteralControl(Int32, Int32, Boolean)

(Inherited from TemplateControl.)

System_CAPS_pubmethodDataBind()

(Inherited from Control.)

System_CAPS_protmethodDataBind(Boolean)

(Inherited from Control.)

System_CAPS_protmethodDataBindChildren()

(Inherited from Control.)

System_CAPS_protmethodDeterminePostBackMode()

(Inherited from Page.)

System_CAPS_protmethodDeterminePostBackModeUnvalidated()

(Inherited from Page.)

System_CAPS_pubmethodDispose()

(Inherited from Control.)

System_CAPS_protmethodEnsureChildControls()

(Inherited from Control.)

System_CAPS_protmethodEnsureID()

(Inherited from Control.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodEval(String)

(Inherited from TemplateControl.)

System_CAPS_protmethodEval(String, String)

(Inherited from TemplateControl.)

System_CAPS_pubmethodExecuteRegisteredAsyncTasks()

(Inherited from Page.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindControl(String)

(Inherited from Page.)

System_CAPS_protmethodFindControl(String, Int32)

(Inherited from Control.)

System_CAPS_pubmethodFocus()

(Inherited from Control.)

System_CAPS_protmethodFrameworkInitialize()

(Inherited from Page.)

System_CAPS_pubmethodGetDataItem()

(Inherited from Page.)

System_CAPS_protmethodGetDesignModeState()

(Inherited from Control.)

System_CAPS_protmethodGetGlobalResourceObject(String, String)

(Inherited from TemplateControl.)

System_CAPS_protmethodGetGlobalResourceObject(String, String, Type, String)

(Inherited from TemplateControl.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetLocalResourceObject(String)

(Inherited from TemplateControl.)

System_CAPS_protmethodGetLocalResourceObject(String, Type, String)

(Inherited from TemplateControl.)

System_CAPS_pubmethodGetPostBackClientEvent(Control, String)

(Inherited from Page.)

System_CAPS_pubmethodGetPostBackClientHyperlink(Control, String)

(Inherited from Page.)

System_CAPS_pubmethodGetPostBackEventReference(Control)

(Inherited from Page.)

System_CAPS_pubmethodGetPostBackEventReference(Control, String)

(Inherited from Page.)

System_CAPS_pubmethodGetRouteUrl(Object)

(Inherited from Control.)

System_CAPS_pubmethodGetRouteUrl(RouteValueDictionary)

(Inherited from Control.)

System_CAPS_pubmethodGetRouteUrl(String, Object)

(Inherited from Control.)

System_CAPS_pubmethodGetRouteUrl(String, RouteValueDictionary)

(Inherited from Control.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetUniqueIDRelativeTo(Control)

(Inherited from Control.)

System_CAPS_pubmethodGetValidators(String)

(Inherited from Page.)

System_CAPS_pubmethodHasControls()

(Inherited from Control.)

System_CAPS_protmethodHasEvents()

(Inherited from Control.)

System_CAPS_pubmethodInitHelpers()

Initializes the Ajax, Html, and Url properties.

System_CAPS_protmethodInitializeCulture()

(Inherited from Page.)

System_CAPS_pubmethodIsClientScriptBlockRegistered(String)

(Inherited from Page.)

System_CAPS_protmethodIsLiteralContent()

(Inherited from Control.)

System_CAPS_pubmethodIsStartupScriptRegistered(String)

(Inherited from Page.)

System_CAPS_pubmethodLoadControl(String)

(Inherited from TemplateControl.)

System_CAPS_pubmethodLoadControl(Type, Object[])

(Inherited from TemplateControl.)

System_CAPS_protmethodLoadControlState(Object)

(Inherited from Control.)

System_CAPS_protmethodLoadPageStateFromPersistenceMedium()

(Inherited from Page.)

System_CAPS_pubmethodLoadTemplate(String)

(Inherited from TemplateControl.)

System_CAPS_protmethodLoadViewState(Object)

(Inherited from Control.)

System_CAPS_pubmethodMapPath(String)

(Inherited from Page.)

System_CAPS_protmethodMapPathSecure(String)

(Inherited from Control.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnAbortTransaction(EventArgs)

(Inherited from TemplateControl.)

System_CAPS_protmethodOnBubbleEvent(Object, EventArgs)

(Inherited from Control.)

System_CAPS_protmethodOnCommitTransaction(EventArgs)

(Inherited from TemplateControl.)

System_CAPS_protmethodOnDataBinding(EventArgs)

(Inherited from Control.)

System_CAPS_protmethodOnError(EventArgs)

(Inherited from TemplateControl.)

System_CAPS_protmethodOnInit(EventArgs)

(Inherited from Page.)

System_CAPS_protmethodOnInitComplete(EventArgs)

(Inherited from Page.)

System_CAPS_protmethodOnLoad(EventArgs)

(Inherited from Control.)

System_CAPS_protmethodOnLoadComplete(EventArgs)

(Inherited from Page.)

System_CAPS_protmethodOnPreInit(EventArgs)

Raises the PreInit event at the beginning of page initialization.(Overrides Page.OnPreInit(EventArgs).)

System_CAPS_protmethodOnPreLoad(EventArgs)

(Inherited from Page.)

System_CAPS_protmethodOnPreRender(EventArgs)

(Inherited from Control.)

System_CAPS_protmethodOnPreRenderComplete(EventArgs)

(Inherited from Page.)

System_CAPS_protmethodOnSaveStateComplete(EventArgs)

(Inherited from Page.)

System_CAPS_protmethodOnUnload(EventArgs)

(Inherited from Control.)

System_CAPS_protmethodOpenFile(String)

(Inherited from Control.)

System_CAPS_pubmethodParseControl(String)

(Inherited from TemplateControl.)

System_CAPS_pubmethodParseControl(String, Boolean)

(Inherited from TemplateControl.)

System_CAPS_pubmethodProcessRequest(HttpContext)

Enables processing of the specified HTTP request by the ASP.NET MVC framework.(Overrides Page.ProcessRequest(HttpContext).)

System_CAPS_protmethodRaiseBubbleEvent(Object, EventArgs)

(Inherited from Control.)

System_CAPS_protmethodRaisePostBackEvent(IPostBackEventHandler, String)

(Inherited from Page.)

System_CAPS_pubmethodRegisterArrayDeclaration(String, String)

(Inherited from Page.)

System_CAPS_pubmethodRegisterAsyncTask(PageAsyncTask)

(Inherited from Page.)

System_CAPS_pubmethodRegisterClientScriptBlock(String, String)

(Inherited from Page.)

System_CAPS_pubmethodRegisterHiddenField(String, String)

(Inherited from Page.)

System_CAPS_pubmethodRegisterOnSubmitStatement(String, String)

(Inherited from Page.)

System_CAPS_pubmethodRegisterRequiresControlState(Control)

(Inherited from Page.)

System_CAPS_pubmethodRegisterRequiresPostBack(Control)

(Inherited from Page.)

System_CAPS_pubmethodRegisterRequiresRaiseEvent(IPostBackEventHandler)

(Inherited from Page.)

System_CAPS_pubmethodRegisterRequiresViewStateEncryption()

(Inherited from Page.)

System_CAPS_pubmethodRegisterStartupScript(String, String)

(Inherited from Page.)

System_CAPS_pubmethodRegisterViewStateHandler()

(Inherited from Page.)

System_CAPS_protmethodRemovedControl(Control)

(Inherited from Control.)

System_CAPS_protmethodRender(HtmlTextWriter)

Initializes the HtmlTextWriter object that receives the page content to be rendered.(Overrides Page.Render(HtmlTextWriter).)

System_CAPS_protmethodRenderChildren(HtmlTextWriter)

(Inherited from Control.)

System_CAPS_pubmethodRenderControl(HtmlTextWriter)

(Inherited from Control.)

System_CAPS_protmethodRenderControl(HtmlTextWriter, ControlAdapter)

(Inherited from Control.)

System_CAPS_pubmethodRenderView(ViewContext)

Renders the view page to the response using the specified view context.

System_CAPS_pubmethodRequiresControlState(Control)

(Inherited from Page.)

System_CAPS_protmethodResolveAdapter()

(Inherited from Control.)

System_CAPS_pubmethodResolveClientUrl(String)

(Inherited from Control.)

System_CAPS_pubmethodResolveUrl(String)

(Inherited from Control.)

System_CAPS_protmethodSaveControlState()

(Inherited from Control.)

System_CAPS_protmethodSavePageStateToPersistenceMedium(Object)

(Inherited from Page.)

System_CAPS_protmethodSaveViewState()

(Inherited from Control.)

System_CAPS_protmethodSetDesignModeState(IDictionary)

(Inherited from Control.)

System_CAPS_pubmethodSetFocus(Control)

(Inherited from Page.)

System_CAPS_pubmethodSetFocus(String)

(Inherited from Page.)

System_CAPS_pubmethodSetRenderMethodDelegate(RenderMethod)

(Inherited from Control.)

System_CAPS_pubmethodSetTextWriter(TextWriter)

Obsolete.Note: This API is now obsolete.

Sets the text writer that is used to render the view to the response.

System_CAPS_protmethodSetViewData(ViewDataDictionary)

Sets the view data dictionary for the associated view.

System_CAPS_pubmethodTestDeviceFilter(String)

(Inherited from TemplateControl.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodTrackViewState()

(Inherited from Control.)

System_CAPS_pubmethodTryUpdateModel<TModel>(TModel)

(Inherited from Page.)

System_CAPS_pubmethodTryUpdateModel<TModel>(TModel, IValueProvider)

(Inherited from Page.)

System_CAPS_pubmethodUnregisterRequiresControlState(Control)

(Inherited from Page.)

System_CAPS_pubmethodUpdateModel<TModel>(TModel)

(Inherited from Page.)

System_CAPS_pubmethodUpdateModel<TModel>(TModel, IValueProvider)

(Inherited from Page.)

System_CAPS_pubmethodValidate()

(Inherited from Page.)

System_CAPS_pubmethodValidate(String)

(Inherited from Page.)

System_CAPS_pubmethodVerifyRenderingInServerForm(Control)

(Inherited from Page.)

System_CAPS_protmethodXPath(String)

(Inherited from TemplateControl.)

System_CAPS_protmethodXPath(String, IXmlNamespaceResolver)

(Inherited from TemplateControl.)

System_CAPS_protmethodXPath(String, String)

(Inherited from TemplateControl.)

System_CAPS_protmethodXPath(String, String, IXmlNamespaceResolver)

(Inherited from TemplateControl.)

System_CAPS_protmethodXPathSelect(String)

(Inherited from TemplateControl.)

System_CAPS_protmethodXPathSelect(String, IXmlNamespaceResolver)

(Inherited from TemplateControl.)

NameDescription
System_CAPS_pubeventAbortTransaction

(Inherited from TemplateControl.)

System_CAPS_pubeventCommitTransaction

(Inherited from TemplateControl.)

System_CAPS_pubeventDataBinding

(Inherited from Control.)

System_CAPS_pubeventDisposed

(Inherited from Control.)

System_CAPS_pubeventError

(Inherited from TemplateControl.)

System_CAPS_pubeventInit

(Inherited from Control.)

System_CAPS_pubeventInitComplete

(Inherited from Page.)

System_CAPS_pubeventLoad

(Inherited from Control.)

System_CAPS_pubeventLoadComplete

(Inherited from Page.)

System_CAPS_pubeventPreInit

(Inherited from Page.)

System_CAPS_pubeventPreLoad

(Inherited from Page.)

System_CAPS_pubeventPreRender

(Inherited from Control.)

System_CAPS_pubeventPreRenderComplete

(Inherited from Page.)

System_CAPS_pubeventSaveStateComplete

(Inherited from Page.)

System_CAPS_pubeventUnload

(Inherited from Control.)

The ViewPage class is used by the default view engine (WebFormViewEngine) to render a view as a Web Forms (.aspx) page.

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

Return to top
Show:
© 2015 Microsoft