c# - What does the @model keyword do in an ASP.NET MVC View? -


i have doubts how work @model statement cshtml view. in code, have this:

@model mycorp.earlywarnings.webinterface.models.homepagemodel 

so do?

i think including homepagemodel model current view object instance of class contains information have show in view, interpretration correct or missing something?

another doubt is: populate model? populated specific controller of view?

i think including homepagemodel model current view object instance of class contains information have show in view, interpretration correct or missing something?

yes, have interpretted correctlty.

is populated specific controller of view?

yes, populated specific action of specific controller view.


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -