3
Answers

How to call action method using ajax in mvc5

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.
    Answers (3)