I have a page that loads the last 12 months of press releases. At the bottom is a button that attempts to append the 6 prior press releases via ajax.
I'm getting this error when my Surface Controller returns my Partial View.
Cannot bind source type myproject.Models.ccPressOlder to model type Umbraco.Web.Models.RenderModel.
My architecture is thus:
View named Media.cshtml
Partial view named ccPress.cshtml (loads 12 months of press)
Partial view named ccPressOlder.cshtml
JavaScript main.js does the ajax bit
Surface controller PartialViewController.cs
Model named ccPressOlder.cs for strongly typing the content sent to
my partial view named ccPressOlder.cshtml
@JonathanDistenfeld a million thanks for wading through my long OP and coming up with the spot-on solution!!! Can't thank you enough you were 100% correct! Thank you!
Help with Surface Controller
I have a page that loads the last 12 months of press releases. At the bottom is a button that attempts to append the 6 prior press releases via ajax.
I'm getting this error when my Surface Controller returns my Partial View. Cannot bind source type myproject.Models.ccPressOlder to model type Umbraco.Web.Models.RenderModel.
My architecture is thus:
Media.cshtml
ccPress.cshtml
(loads 12 months of press)ccPressOlder.cshtml
main.js
does the ajax bitPartialViewController.cs
ccPressOlder.cs
for strongly typing the content sent to my partial view namedccPressOlder.cshtml
ccPress.cshtml
main.js
ccPressOlder.cs
PartialViewController.cs
ccPressOlder.cshtml
Hi bh,
try updating your ccPressOlder.cshtml to following:
~ Jonathan
@JonathanDistenfeld a million thanks for wading through my long OP and coming up with the spot-on solution!!! Can't thank you enough you were 100% correct! Thank you!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.