There is a controller with two methods

public ActionResult Index() { return View(); } public JsonResult JSResult() { return Json(MakeAnswer.MakeString(Request), JsonRequestBehavior.AllowGet); } 

Index has a form to send data to the server.

 <form method="get" action="JSResult"> 

How to make the result after clicking Submit appear on the first page in another div block?

  • Is the form manually written in markup? - Grundy
  • himself wrote a .cshtml file - dovorob
  • can be seen in the direction of @ Ajax.BeginForm - Grundy

0