Hi @Jagjit Saini ,
I wrote a simple example, you can refer to it.
Controller:
public ActionResult Test()
{
return View();
}
[HttpPost]
public ActionResult Test(string comment)
{
return Json(comment,JsonRequestBehavior.AllowGet);
}
View:
Result:;
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
ChaoDeng