LeBlender PartialView cannot bind the custom model
Hi,
I have created a LeBlender item in Umbraco and setup the view and controller for it, but when I try and inherit from my own custom model, I get the following error:
Cannot bind source type Lecoati.LeBlender.Extension.Models.LeBlenderModel to model type myCustomModel.
my inherits code:
@inherits UmbracoViewPage<myCustomModel>
The partial works fine when i use the following return in the controller:
return View(myCustomModel);
But when i return a partial view, I get the error. I don't want to use a full view as it inserts the header and footer in the partial, but I still want to use my custom model instead of the LeBlender one.
If anyone has any ideas for this, it would be appreciated.
LeBlender PartialView cannot bind the custom model
Hi,
I have created a LeBlender item in Umbraco and setup the view and controller for it, but when I try and inherit from my own custom model, I get the following error:
Cannot bind source type Lecoati.LeBlender.Extension.Models.LeBlenderModel to model type myCustomModel.
my inherits code:
The partial works fine when i use the following return in the controller:
But when i return a partial view, I get the error. I don't want to use a full view as it inserts the header and footer in the partial, but I still want to use my custom model instead of the LeBlender one.
If anyone has any ideas for this, it would be appreciated.
Thanks.
is working on a reply...