Anshuman Sharma

Anshuman Sharma

  • 1.9k
  • 91
  • 3.4k

How to call action method using ajax in mvc5

Nov 25 2016 2:21 AM
dear all,
 
 
how to call the Action method from the side menu item click using ajax...???
 
my controller is
 
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}

public ActionResult About()
{
ViewBag.Message = "Your application description page.";

return View();
}

public ActionResult Contact()
{
ViewBag.Message = "Your contact page.";

return View();
}
 
and site menu on layout is
 
  • Dashboard

  • Database

  • Amma Zaan
  •  
     
    once we click on any link it should open the respective view in renderbody() without postback.

    Brought to you by:

    Answers (3)