New to this, so bear with me if I missed this somewhere in another answer. I tried using AjaxOptions in Ajax.BeginForm and it did not pop up, so I switched to testing it in an ActionLink instead, and still can’t get it to work. For both the ajax.beginform and the ajax.actionlink it goes to the correct controller and carries on fine, but I get no confirmation message.
What am I doing wrong?
Thanks,
K
From View:
<script type="text/javascript" src="/Scripts/jquery.unobtrusive-ajax.min.js"></script>
@Ajax.ActionLink(
"Revoke Access to all Galleries Immediately",
"ViewInvites",
"Gallery",
new AjaxOptions {
Confirm = "Are you sure you want to revoke access to all galleries? This cannot be undone.",
HttpMethod = "Post"
}
)
Be sure the script tag is actually pointing to the correct script. You may need to specify a relative path.
Firebug is helpful for discovering if this is the issue.