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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -