There are two methods in the Home controller:
public class HomeController : Controller { public ActionResult Index() { return View(); } //[HttpPost] public ActionResult Load() { return PartialView(); } } I am trying to load a partial view asynchronously from the Load method. I do this:
<button class="btn btn-default loadbook" type="submit"> @Ajax.ActionLink("ClickMe","Load", new AjaxOptions(){UpdateTargetId="di"}) </button> but it refreshes the page and loads it on a new page.
What could be the problem?