asp.net mvc 4 - Razor view master page and ViewModel -


i have master page (master.cshtml), child master page(dashboard_master.cshtml) , page (dashboard.cshtml)

dashboard.cshtml using typed model "com.models.dashboard"

the thing is, there html link inside "dashbhoard_master" needs changed based on property inside model class (com.models.dashboard)

i specified @model com.models.dashboard in dashboard.cshtml, how can master page know model property?

not sure if makes sense.

thanks

nevermind. looks can use @model.[property] directly in master , works time. don't know why didn't' work me first time. sorry guys


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -