Export (0) Print
Expand All

ViewPage<TModel> Class

Represents the information that is required in order to render a strongly typed view as a Web Forms page.

System::Object
  System.Web.UI::Control
    System.Web.UI::TemplateControl
      System.Web.UI::Page
        System.Web.Mvc::ViewPage
          System.Web.Mvc::ViewPage<TModel>

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

generic<typename TModel>
public ref class ViewPage : public ViewPage

Type Parameters

TModel

The type of the model.

The ViewPage<TModel> type exposes the following members.

  NameDescription
Public methodViewPage<TModel>Initializes a new instance of the ViewPage<TModel> class.
Top

  NameDescription
Protected propertyAdapter (Inherited from Control.)
Public propertyAjaxGets or sets the AjaxHelper<TModel> object that supports rendering HTML in Ajax scenarios.
Public propertyApplication (Inherited from Page.)
Public propertyAppRelativeTemplateSourceDirectory (Inherited from Control.)
Public propertyAppRelativeVirtualPath (Inherited from TemplateControl.)
Protected propertyAspCompatMode (Inherited from Page.)
Protected propertyAsyncMode (Inherited from Page.)
Public propertyAsyncTimeout (Inherited from Page.)
Protected propertyAutoHandlers Obsolete. (Inherited from TemplateControl.)
Public propertyAutoPostBackControl (Inherited from Page.)
Public propertyBindingContainer (Inherited from Control.)
Public propertyBuffer (Inherited from Page.)
Public propertyCache (Inherited from Page.)
Protected propertyChildControlsCreated (Inherited from Control.)
Public propertyClientID (Inherited from Control.)
Public propertyClientIDMode (Inherited from Control.)
Protected propertyClientIDSeparator (Inherited from Control.)
Public propertyClientQueryString (Inherited from Page.)
Public propertyClientScript (Inherited from Page.)
Public propertyClientTarget (Inherited from Page.)
Public propertyCodePage (Inherited from Page.)
Public propertyContentType (Inherited from Page.)
Protected propertyContext (Inherited from Page.)
Public propertyControls (Inherited from Control.)
Public propertyCulture (Inherited from Page.)
Public propertyDataItemContainer (Inherited from Control.)
Public propertyDataKeysContainer (Inherited from Control.)
Protected propertyDesignMode (Inherited from Control.)
Public propertyEnableEventValidation (Inherited from Page.)
Public propertyEnableTheming (Inherited from TemplateControl.)
Public propertyEnableViewState (Inherited from Page.)
Public propertyEnableViewStateMac (Inherited from Page.)
Public propertyErrorPage (Inherited from Page.)
Protected propertyEvents (Inherited from Control.)
Protected propertyFileDependencies Obsolete. (Inherited from Page.)
Public propertyForm (Inherited from Page.)
Protected propertyHasChildViewState (Inherited from Control.)
Public propertyHeader (Inherited from Page.)
Public propertyHtmlGets or sets the HtmlHelper object that provides support for rendering elements.
Public propertyID (Inherited from Page.)
Public propertyIdSeparator (Inherited from Page.)
Public propertyIsAsync (Inherited from Page.)
Public propertyIsCallback (Inherited from Page.)
Protected propertyIsChildControlStateCleared (Inherited from Control.)
Public propertyIsCrossPagePostBack (Inherited from Page.)
Public propertyIsPostBack (Inherited from Page.)
Public propertyIsPostBackEventControlRegistered (Inherited from Page.)
Public propertyIsReusable (Inherited from Page.)
Protected propertyIsTrackingViewState (Inherited from Control.)
Public propertyIsValid (Inherited from Page.)
Protected propertyIsViewStateEnabled (Inherited from Control.)
Public propertyItems (Inherited from Page.)
Public propertyLCID (Inherited from Page.)
Protected propertyLoadViewStateByID (Inherited from Control.)
Public propertyMaintainScrollPositionOnPostBack (Inherited from Page.)
Public propertyMaster (Inherited from Page.)
Public propertyMasterLocationGets or sets the path of the master view. (Inherited from ViewPage.)
Public propertyMasterPageFile (Inherited from Page.)
Public propertyMaxPageStateFieldLength (Inherited from Page.)
Public propertyMetaDescription (Inherited from Page.)
Public propertyMetaKeywords (Inherited from Page.)
Public propertyModelGets the Model property of the associated ViewDataDictionary<TModel> object.
Public propertyModelBindingExecutionContext (Inherited from Page.)
Public propertyModelState (Inherited from Page.)
Public propertyNamingContainer (Inherited from Control.)
Public propertyPage (Inherited from Control.)
Public propertyPageAdapter (Inherited from Page.)
Protected propertyPageStatePersister (Inherited from Page.)
Public propertyParent (Inherited from Control.)
Public propertyPreviousPage (Inherited from Page.)
Public propertyRenderingCompatibility (Inherited from Control.)
Public propertyRequest (Inherited from Page.)
Public propertyResponse (Inherited from Page.)
Public propertyResponseEncoding (Inherited from Page.)
Public propertyRouteData (Inherited from Page.)
Public propertyServer (Inherited from Page.)
Public propertySession (Inherited from Page.)
Public propertySite (Inherited from Control.)
Public propertySkinID (Inherited from Control.)
Public propertySkipFormActionValidation (Inherited from Page.)
Public propertySmartNavigation Obsolete. (Inherited from Page.)
Public propertyStyleSheetTheme (Inherited from Page.)
Protected propertySupportAutoEvents (Inherited from TemplateControl.)
Public propertyTempDataGets the temporary data to pass to the view. (Inherited from ViewPage.)
Public propertyTemplateControl (Inherited from Control.)
Public propertyTemplateSourceDirectory (Inherited from Control.)
Public propertyTheme (Inherited from Page.)
Public propertyTitle (Inherited from Page.)
Public propertyTrace (Inherited from Page.)
Public propertyTraceEnabled (Inherited from Page.)
Public propertyTraceModeValue (Inherited from Page.)
Protected propertyTransactionMode (Inherited from Page.)
Public propertyUICulture (Inherited from Page.)
Protected propertyUniqueFilePathSuffix (Inherited from Page.)
Public propertyUniqueID (Inherited from Control.)
Public propertyUnobtrusiveValidationMode (Inherited from Page.)
Public propertyUrlGets or sets the URL of the rendered page. (Inherited from ViewPage.)
Public propertyUser (Inherited from Page.)
Public propertyValidateRequestMode (Inherited from Page.)
Public propertyValidators (Inherited from Page.)
Public propertyViewBagGets the view bag. (Inherited from ViewPage.)
Public propertyViewContextGets or sets the information that is used to render the view. (Inherited from ViewPage.)
Public propertyViewDataGets or sets a dictionary that contains data to pass between the controller and the view.
Protected propertyViewState (Inherited from Control.)
Public propertyViewStateEncryptionMode (Inherited from Page.)
Protected propertyViewStateIgnoresCase (Inherited from Control.)
Public propertyViewStateMode (Inherited from Control.)
Public propertyViewStateUserKey (Inherited from Page.)
Public propertyVisible (Inherited from Page.)
Public propertyWriterGets the text writer that is used to render the view to the response. (Inherited from ViewPage.)
Top

  NameDescription
Protected methodAddContentTemplate (Inherited from Page.)
Protected methodAddedControl (Inherited from Control.)
Public methodAddOnPreRenderCompleteAsync(BeginEventHandler, EndEventHandler) (Inherited from Page.)
Public methodAddOnPreRenderCompleteAsync(BeginEventHandler, EndEventHandler, Object) (Inherited from Page.)
Protected methodAddParsedSubObject (Inherited from Control.)
Protected methodAddWrappedFileDependencies (Inherited from Page.)
Public methodApplyStyleSheetSkin (Inherited from Control.)
Protected methodAspCompatBeginProcessRequest (Inherited from Page.)
Protected methodAspCompatEndProcessRequest (Inherited from Page.)
Protected methodAsyncPageBeginProcessRequest (Inherited from Page.)
Protected methodAsyncPageEndProcessRequest (Inherited from Page.)
Protected methodBeginRenderTracing (Inherited from Control.)
Protected methodBuildProfileTree (Inherited from Control.)
Protected methodClearCachedClientID (Inherited from Control.)
Protected methodClearChildControlState (Inherited from Control.)
Protected methodClearChildState (Inherited from Control.)
Protected methodClearChildViewState (Inherited from Control.)
Protected methodClearEffectiveClientIDMode (Inherited from Control.)
Protected methodConstruct (Inherited from TemplateControl.)
Protected methodCreateChildControls (Inherited from Control.)
Protected methodCreateControlCollection (Inherited from Control.)
Protected methodCreateHtmlTextWriter (Inherited from Page.)
Protected methodCreateResourceBasedLiteralControl (Inherited from TemplateControl.)
Public methodDataBind() (Inherited from Control.)
Protected methodDataBind(Boolean) (Inherited from Control.)
Protected methodDataBindChildren (Inherited from Control.)
Public methodDesignerInitialize (Inherited from Page.)
Protected methodDeterminePostBackMode (Inherited from Page.)
Protected methodDeterminePostBackModeUnvalidated (Inherited from Page.)
Public methodDispose (Inherited from Control.)
Protected methodEndRenderTracing (Inherited from Control.)
Protected methodEnsureChildControls (Inherited from Control.)
Protected methodEnsureID (Inherited from Control.)
Public methodEquals (Inherited from Object.)
Protected methodEval(String) (Inherited from TemplateControl.)
Protected methodEval(String, String) (Inherited from TemplateControl.)
Public methodExecuteRegisteredAsyncTasks (Inherited from Page.)
Protected methodFinalize (Inherited from Object.)
Public methodFindControl(String) (Inherited from Page.)
Protected methodFindControl(String, Int32) (Inherited from Control.)
Public methodFocus (Inherited from Control.)
Protected methodFrameworkInitialize (Inherited from Page.)
Public methodGetDataItem (Inherited from Page.)
Protected methodGetDesignModeState (Inherited from Control.)
Protected methodGetGlobalResourceObject(String, String) (Inherited from TemplateControl.)
Protected methodGetGlobalResourceObject(String, String, Type, String) (Inherited from TemplateControl.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetLocalResourceObject(String) (Inherited from TemplateControl.)
Protected methodGetLocalResourceObject(String, Type, String) (Inherited from TemplateControl.)
Public methodGetPostBackClientEvent Obsolete. (Inherited from Page.)
Public methodGetPostBackClientHyperlink Obsolete. (Inherited from Page.)
Public methodGetPostBackEventReference(Control) Obsolete. (Inherited from Page.)
Public methodGetPostBackEventReference(Control, String) Obsolete. (Inherited from Page.)
Public methodGetRouteUrl(Object) (Inherited from Control.)
Public methodGetRouteUrl(RouteValueDictionary) (Inherited from Control.)
Public methodGetRouteUrl(String, Object) (Inherited from Control.)
Public methodGetRouteUrl(String, RouteValueDictionary) (Inherited from Control.)
Public methodGetType (Inherited from Object.)
Public methodGetTypeHashCode (Inherited from Page.)
Public methodGetUniqueIDRelativeTo (Inherited from Control.)
Public methodGetValidators (Inherited from Page.)
Protected methodGetWrappedFileDependencies (Inherited from Page.)
Public methodHasControls (Inherited from Control.)
Protected methodHasEvents (Inherited from Control.)
Public methodInitHelpersInstantiates and initializes the Ajax and Html properties. (Overrides ViewPage::InitHelpers().)
Protected methodInitializeCulture (Inherited from Page.)
Protected methodInitOutputCache(OutputCacheParameters) (Inherited from Page.)
Protected methodInitOutputCache(Int32, String, String, OutputCacheLocation, String) (Inherited from Page.)
Protected methodInitOutputCache(Int32, String, String, String, OutputCacheLocation, String) (Inherited from Page.)
Public methodIsClientScriptBlockRegistered Obsolete. (Inherited from Page.)
Protected methodIsLiteralContent (Inherited from Control.)
Public methodIsStartupScriptRegistered Obsolete. (Inherited from Page.)
Public methodLoadControl(String) (Inherited from TemplateControl.)
Public methodLoadControl(Type, array<Object>) (Inherited from TemplateControl.)
Protected methodLoadControlState (Inherited from Control.)
Protected methodLoadPageStateFromPersistenceMedium (Inherited from Page.)
Public methodLoadTemplate (Inherited from TemplateControl.)
Protected methodLoadViewState (Inherited from Control.)
Public methodMapPath (Inherited from Page.)
Protected methodMapPathSecure (Inherited from Control.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnAbortTransaction (Inherited from TemplateControl.)
Protected methodOnBubbleEvent (Inherited from Control.)
Protected methodOnCommitTransaction (Inherited from TemplateControl.)
Protected methodOnDataBinding (Inherited from Control.)
Protected methodOnError (Inherited from TemplateControl.)
Protected methodOnInit (Inherited from Page.)
Protected methodOnInitComplete (Inherited from Page.)
Protected methodOnLoad (Inherited from Control.)
Protected methodOnLoadComplete (Inherited from Page.)
Protected methodOnPreInitRaises the PreInit event at the beginning of page initialization. (Inherited from ViewPage.)
Protected methodOnPreLoad (Inherited from Page.)
Protected methodOnPreRender (Inherited from Control.)
Protected methodOnPreRenderComplete (Inherited from Page.)
Protected methodOnSaveStateComplete (Inherited from Page.)
Protected methodOnUnload (Inherited from Control.)
Protected methodOpenFile (Inherited from Control.)
Public methodParseControl(String) (Inherited from TemplateControl.)
Public methodParseControl(String, Boolean) (Inherited from TemplateControl.)
Public methodProcessRequestEnables processing of the specified HTTP request by the ASP.NET MVC framework. (Inherited from ViewPage.)
Protected methodRaiseBubbleEvent (Inherited from Control.)
Protected methodRaisePostBackEvent (Inherited from Page.)
Public methodReadStringResource (Inherited from TemplateControl.)
Public methodRegisterArrayDeclaration Obsolete. (Inherited from Page.)
Public methodRegisterAsyncTask (Inherited from Page.)
Public methodRegisterClientScriptBlock Obsolete. (Inherited from Page.)
Public methodRegisterHiddenField Obsolete. (Inherited from Page.)
Public methodRegisterOnSubmitStatement Obsolete. (Inherited from Page.)
Public methodRegisterRequiresControlState (Inherited from Page.)
Public methodRegisterRequiresPostBack (Inherited from Page.)
Public methodRegisterRequiresRaiseEvent (Inherited from Page.)
Public methodRegisterRequiresViewStateEncryption (Inherited from Page.)
Public methodRegisterStartupScript Obsolete. (Inherited from Page.)
Public methodRegisterViewStateHandler (Inherited from Page.)
Protected methodRemovedControl (Inherited from Control.)
Protected methodRenderInitializes the HtmlTextWriter object that receives the page content to be rendered. (Inherited from ViewPage.)
Protected methodRenderChildren (Inherited from Control.)
Public methodRenderControl(HtmlTextWriter) (Inherited from Control.)
Protected methodRenderControl(HtmlTextWriter, ControlAdapter) (Inherited from Control.)
Public methodRenderViewRenders the view page to the response using the specified view context. (Inherited from ViewPage.)
Public methodRequiresControlState (Inherited from Page.)
Protected methodResolveAdapter (Inherited from Control.)
Public methodResolveClientUrl (Inherited from Control.)
Public methodResolveUrl (Inherited from Control.)
Protected methodSaveControlState (Inherited from Control.)
Protected methodSavePageStateToPersistenceMedium (Inherited from Page.)
Protected methodSaveViewState (Inherited from Control.)
Protected methodSetDesignModeState (Inherited from Control.)
Public methodSetFocus(Control) (Inherited from Page.)
Public methodSetFocus(String) (Inherited from Page.)
Public methodSetRenderMethodDelegate (Inherited from Control.)
Protected methodSetStringResourcePointer (Inherited from TemplateControl.)
Public methodSetTextWriter Obsolete. Sets the text writer that is used to render the view to the response. (Inherited from ViewPage.)
Public methodSetTraceData(Object, Object) (Inherited from Control.)
Public methodSetTraceData(Object, Object, Object) (Inherited from Control.)
Protected methodSetViewDataSets the view data dictionary for the associated view. (Overrides ViewPage::SetViewData(ViewDataDictionary).)
Public methodTestDeviceFilter (Inherited from TemplateControl.)
Public methodToString (Inherited from Object.)
Protected methodTrackViewState (Inherited from Control.)
Public methodTryUpdateModel``1(UMP) (Inherited from Page.)
Public methodTryUpdateModel``1(UMP, IValueProvider) (Inherited from Page.)
Public methodUnregisterRequiresControlState (Inherited from Page.)
Public methodUpdateModel``1(UMP) (Inherited from Page.)
Public methodUpdateModel``1(UMP, IValueProvider) (Inherited from Page.)
Public methodValidate() (Inherited from Page.)
Public methodValidate(String) (Inherited from Page.)
Public methodVerifyRenderingInServerForm (Inherited from Page.)
Protected methodWriteUTF8ResourceString (Inherited from TemplateControl.)
Protected methodXPath(String) (Inherited from TemplateControl.)
Protected methodXPath(String, IXmlNamespaceResolver) (Inherited from TemplateControl.)
Protected methodXPath(String, String) (Inherited from TemplateControl.)
Protected methodXPath(String, String, IXmlNamespaceResolver) (Inherited from TemplateControl.)
Protected methodXPathSelect(String) (Inherited from TemplateControl.)
Protected methodXPathSelect(String, IXmlNamespaceResolver) (Inherited from TemplateControl.)
Top

  NameDescription
Public eventAbortTransaction (Inherited from TemplateControl.)
Public eventCommitTransaction (Inherited from TemplateControl.)
Public eventDataBinding (Inherited from Control.)
Public eventDisposed (Inherited from Control.)
Public eventError (Inherited from TemplateControl.)
Public eventInit (Inherited from Control.)
Public eventInitComplete (Inherited from Page.)
Public eventLoad (Inherited from Control.)
Public eventLoadComplete (Inherited from Page.)
Public eventPreInit (Inherited from Page.)
Public eventPreLoad (Inherited from Page.)
Public eventPreRender (Inherited from Control.)
Public eventPreRenderComplete (Inherited from Page.)
Public eventSaveStateComplete (Inherited from Page.)
Public eventUnload (Inherited from Control.)
Top

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.
Show:
© 2014 Microsoft