ViewPage.ViewData Property

Definition

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

public System.Web.Mvc.ViewDataDictionary ViewData { get; set; }
member this.ViewData : System.Web.Mvc.ViewDataDictionary with get, set
Public Property ViewData As ViewDataDictionary

Property Value

A dictionary that contains data to pass between the controller and the view.

Implements

Applies to