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
I have an issue with submit a form in partial view. Other forms are submit at the same time.
Controller:
[HttpPost, ValidateInput(false)] public ActionResult RenderShppingCart(Order model) { if (ModelState.IsValid && model != null) { if (User.Identity.Name == null || User.Identity.Name == "") { ModelState.AddModelError("", "Please login first!."); return CurrentUmbracoPage(); }
in partial view
@using (Html.BeginUmbracoForm<ProductController>("RenderShppingCart", FormMethod.Post, new { id = "shippingform" }))
{ Checkout }
other partial view
@using (Html.BeginUmbracoForm<SiteAccountController>("RenderLogin", FormMethod.Post, new { id = "loginform" })) { @Html.AntiForgeryToken() @Html.ValidationSummary(true, "", new { @class = "text-danger" })
Log in }
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.
Continue discussion
Multiform Partial view submit
I have an issue with submit a form in partial view. Other forms are submit at the same time.
Controller:
{ }
other partial view
}
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.