0

我正在开发这样一个应用程序,在该应用程序中,我必须在弹出窗口中选择问题类型,在选择类型后,我应该单击 OK 按钮,该按钮将显示多个问题的 webGrid。由于我创建了弹出窗口并且它运行良好,当我点击确定按钮时,窗口变得正常。

因为我的弹出代码是

//Link
@Html.ActionLink("Contact Us", "AddDependentQuestion", "Question",
new { QuestionID = question.QuestionID }, 
new { @class = "openDialog",   data_dialog_title = "Dependent Question" })


 <script type="text/javascript">
$(document).ready(function () {
$(".openDialog").live("click", function (e) {
e.preventDefault();
           $("#popup")
addClass("dialog")
           .attr("id", $(this)
)
                .appendTo("body")
                .dialog({
close: function () { $(this).remove() },
modal: true
                })
.load(this.href);
           alert(this.href);
});

       $(".close").live("click", function (e) {
e.preventDefault();
           $(this).closest(".dialog").dialog("close");
});
   });
</script>
4

0 回答 0