What is ViewData?

Technology CommunityCategory: ASP.NETWhat is ViewData?
VietMX Staff asked 3 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.