Model not binding correctly and controller returning a partial

Topics: Customizing Orchard
Aug 11, 2012 at 3:11 AM
Edited Aug 11, 2012 at 4:57 PM

Hi all.

I'm new to Orchard, but I have been coding MVC for about the last 8 months.

I have a controller in a module that outputs a form in a view and takes in a name field and a comment field.

When I go to the page it loads fine and is in the form, but when the form posts, the action says that the model's fields is null, but the data is in the 'Request.Form'. 

Of course this makes the validation fail and the page to be reloaded, but the action that handles the post isn't returning the whole page and just the content of the view.

Has anyone got any ideas?



I have fixed the rendering issue, I hadn't added the 'Themed' attribute, but I have still got an issue with the model not retaining data

Aug 11, 2012 at 6:10 PM

FIXED. I was missing the orchard naming convensions