What is ViewData?

Technology Community › Category: ASP.NET › What is ViewData?
VietMX Staff asked 5 years ago

Viewdata contains the key, value pairs as dictionary and this is derived from class — “ViewDataDictionary“. In action method we are setting the value for viewdata and in view the value will be fetched by typecasting.