jeudi 14 janvier 2016

RenderModel along with MVC ViewModel Umbraco

Hi I want to know can we include both the Model in the single razor View as Follows when using Umbarco CMS

@inherits Umbraco.Web.Mvc.UmbracoViewPage<MasterViewModel>
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage 

Doing so I am not able to apply HTML helpers such as

@Html.TextBoxFor 
@Html.LabelFor etc

and If I am removing @inherits Umbraco.Web.Mvc.UmbracoTemplatePage I am getting following error The model item passed into the dictionary is of type Umbraco.Web.Models.RenderModel', but this dictionary requires a model item of type 'Umbraco_POCTest.Models.MasterViewModel'

Suggest on this.

Aucun commentaire:

Enregistrer un commentaire