I am creating an ajax.actionlink like below bor my bootstap pop up but insted of opening it in a pop up it redirect to an url saying controller/action
My code is as below
@Ajax.ActionLink("CheckOut", "CheckOut", "Home", null, new AjaxOptions
{
HttpMethod = "Post",
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "myModal"
}, new
{
@class = "btn btn-primary btn-lg",
@id = "chkOut"
})
$(document).ready(function () {
$("#chkOut").attr('data-toggle', 'modal')
});