ASP.NET MVC AjaxActionLink OnComplete and OnSuccess property and Jquery
I'm trying to create a dialog box in my ASP.NET application with an AJAX ActionLink.
The A开发者_如何学Cjax ActionLink inserts a partial view into a div in the current view.
I've called a function OnComplete (and I've tried OnSuccess, too) that calls the dialog function for JQuery UI, like so:
function() loaddialog {
$("ContainerwithInsertedPartialView").dialog();
}
Nevertheless, it display the dialog. Any ideas as to what I'm doing wrong?
You have your function definition wrong, for one. You need to use the id selector (prepend a hash) for another.
function loaddialog() {
$('#ContainerwithInsertedPartialView').dialog();
}
精彩评论