MVC Interview Questions | Asp.net MVC – Updates

1. Explain TempData in MVC?Answer: TempData is again a key, value pair as ViewData. This is derived from “TempDataDictionary” class. TempData is used when the data is to be used in two consecutive requests, this could be between the actions or between the controllers. This requires typecasting in view. 2. Why use Html. Partial in …

MVC Interview Questions | Asp.net MVC – Updates Read More »