I created a login form using the example from 24 days in umbraco. Beautiful. Now I have some complex forms, I wanted to do some prototyping, so I installed Contour on top of it. When I create a basic contact form on the page that also has the login form, I get this error:
ArgumentNullException: String reference not set to an instance of a String.
When debugging, it seems the login surface controller picks up the form submit. I thought having multiple <form>'s on the same page would be ok.
Should I use SurfaceControllers and Contour on the same page, or should I leave this concept and make a choice?
Contour and MVC SurfaceController on same page?
I created a login form using the example from 24 days in umbraco. Beautiful. Now I have some complex forms, I wanted to do some prototyping, so I installed Contour on top of it. When I create a basic contact form on the page that also has the login form, I get this error:
When debugging, it seems the login surface controller picks up the form submit. I thought having multiple <form>'s on the same page would be ok.
Should I use SurfaceControllers and Contour on the same page, or should I leave this concept and make a choice?
Maybe the solution mentionde by Dirk can help you solve this problem : http://our.umbraco.org/forum/developers/razor/40066-Model-binding-problem-when-multiple-forms-on-the-same-page-?p=0#comment146408
Dave
is working on a reply...