I am using Ajax.actionlink helper method to show a partial content in same page. But, its not behaving as like i expected. It opened the rendered partial view in new page. How to resolve it ? I have included all jQuery and Microsoft ajax js files in script
folder. Please help... heres the code.
mani2009it
Member
207 Points
82 Posts
Ajax.ActionLink not placing the rendered content in same page. Instead it open up a new page???
Jun 19, 2012 07:19 AM|LINK
hi,
I am using Ajax.actionlink helper method to show a partial content in same page. But, its not behaving as like i expected. It opened the rendered partial view in new page. How to resolve it ? I have included all jQuery and Microsoft ajax js files in script folder. Please help... heres the code.
<div id="ExampleOfAjaxLink"> @Ajax.ActionLink("EditAjax", "EditAjaxTest", new AjaxOptions { HttpMethod = "Get", UpdateTargetId = "ExampleOfAjaxLink", InsertionMode = InsertionMode.Replace }) </div>and in controller i have written like this
public PartialViewResult EditAjaxTest() { RestaurantReview review = _db.Reviews[0]; return PartialView("_Review", review); }Thanks