开发者

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();
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜