Комментарии:
oh shit so this is where the @model convention comes from and passing a viewmodel to a view
ОтветитьI am getting NullReferenceException: Object reference not set to an instance of an object.
can anyone help me out
What about TempData?
ОтветитьViewData["employee"] = Model;
ViewData["PageTitle"]= "employee Details";
return View(); I M FACING THIS ERROR Cannot apply index with[] to an expression type 'object'
plz can anybody help me
ViewData["employee"] = Model;
ViewData["PageTitle"]= "employee Details";
return View();
Eternamente agradecido 🙏
ОтветитьBrother, thank you very much for creating this.
ОтветитьAwesome sir
ОтветитьWhat about vice-versa. How can we pass data to the controller from view?
ОтветитьBrilliant video, thank you. In 2 minutes, I understood many gray areas of passing data from Controller to View.
ОтветитьAmazing tutorials!
ОтветитьThank you my friend this has really helped me :)
ОтветитьWhy Did U Not Use ViewData.Model??
Ответить"Passing Data to view in ASP NET Core MVC" should be called: "ViewData in ASP NET Core MVC"
ОтветитьWith the new version of MVC Core 3.0 we have a new service call RazorRuntimeCompilation. The only think you have to do is, install the nuget package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation and add the sentence "services.AddMvc().AddRazorRuntimeCompilation();" in the ConfigureServices Method of the Startup class.
ОтветитьMy Visual Studio 2017 Browser reload on save doesn't work
ОтветитьI am not able use skip option even once in whole video because he taught only required and important points...
Thank you
Hello Sir
Forgot to include Tempdata. In all interview it has been asked.
Thanks for the video series, in this video we discussed ViewData, ViewBag and strongly typed view but seems we forgot the TempData here.
ОтветитьGreat Video sir..
Ответитьthank you
ОтветитьYou're a legend buddy
ОтветитьHi nice, but I get the message "The type or namespace name 'EmployeeManagement' could not be found (are you missing a using directive or an assembly reference?)" then I can´t use the var employee.
Ответитьnice nice nice
Ответитьvery nice video venkat sirr
ОтветитьWe can also create viewmodel and bind it using @model tag to view
Ответить