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

ViewPage.TempData Property

Gets the temporary data to pass to the view.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public TempDataDictionary TempData { get; }

Property Value

Type: System.Web.Mvc.TempDataDictionary
The temporary data to pass to the view.

The data stored in the TempData property persists for only one request.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.