Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When I return View from a controller I receive the following error; “Cannot perform runtime binding on a null reference”
[HttpPost] [ValidateAntiForgeryToken] public ActionResult SubmitApplicatForm(ApplicationViewModel model) { if (ModelState.IsValid) { _applicantHelper.CreateApplicant(model); } return View("Register"); }
View Code
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{ Layout = "WebBase.cshtml"; }
@section ScriptsBottom {
<script src="/scripts/jquery.validate.min.js"></script>
<script src="/scripts/jquery.validate.unobtrusive.min.js"></script>
<script src="/scripts/jquery.unobtrusive-ajax.js"></script>
Could you please post the whole code of the controller, so we can see what it's inheriting from?
I find the answer last night, for anyone else how has the same problem. The following code worked for me.
return RedirectToUmbracoPage(1200);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Return a View from Controller
When I return View from a controller I receive the following error; “Cannot perform runtime binding on a null reference”
View Code
@{ Layout = "WebBase.cshtml"; }
@section ScriptsBottom {
}Could you please post the whole code of the controller, so we can see what it's inheriting from?
I find the answer last night, for anyone else how has the same problem. The following code worked for me.
is working on a reply...