Contributor
3980 Points
1562 Posts
Jan 27, 2021 07:58 AM|yij sun|LINK
Hi roxylalondef,
As far as I think,you could create multiple post methods and multiple models.
Just like this:
public ActionResult Index() { return View(); } public ActionResult AC() { return View(....); } [HttpPost] public ActionResult A1() { ... return View(....); } [HttpPost] public ActionResult A2() { .... return View(...); } public ActionResult Success(string message) { ViewBag.Message = message; return View(); } public ActionResult About() { ViewBag.Message = "Your application description page."; return View(); } public ActionResult Contact() { ViewBag.Message = "Your contact page."; return View(); }
More details,you could refer to below article:
https://www.c-sharpcorner.com/article/multiple-models-in-a-single-view-in-asp-net-mvc/
Best regards,
Yijing Sun
Contributor
3980 Points
1562 Posts
Re: How can I solve this complex problem of Dialogs/Modals and Scripts which includes communicati...
Jan 27, 2021 07:58 AM|yij sun|LINK
Hi roxylalondef,
As far as I think,you could create multiple post methods and multiple models.
Just like this:
More details,you could refer to below article:
https://www.c-sharpcorner.com/article/multiple-models-in-a-single-view-in-asp-net-mvc/
Best regards,
Yijing Sun