I have a button on my MVC view on click of it, it should add a partial view in a \'div\', by calling an action which takes an object as a parameter
I tried out some
On ajax call success function append result
ajax call=>
url: 'controllername/methodname'
success: function (partialviewresult)
{
$('#div').append(partialviewresult);
}
// inside controller
public ActionResult methodname()
{
return PartialView("~/a/a.cshtml");
}
and controller must return partialview as result