ASP.NET MVC : Various Methods of Data Transmission from Controllers to Views | ASP.NET MVC
ASP.NET MVC : There are several techniques to transfer data or value from the controller to the view. ViewData Dictionary PropertyBy adding objects to the ViewData dictionary using a key/value pattern, you can supply data that you want to give to a view. //ControllerViewData["username"] = "Mc";<!-- View -->...