如何以模态形式执行回发并将弹出窗口保留在父窗体上。 [英] How Can I Perform Post-Back In Modal Form And It Retain The Popup over parent form.
本文介绍了如何以模态形式执行回发并将弹出窗口保留在父窗体上。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在asp.net中的jquerymodal popup中执行函数我在模态对话框中加载一个aspx页面但是在回发上。
i将以模态形式搜索人,然后选择的记录将以父表格填写这就是我想要实现的目标。搜索排序将以模态形式完成。
i want to perform functions in jquerymodal popup in asp.net i load an aspx page in modal dialog but on postback.
i would search people in modal form then selected record will be filled in parent form this is what i want to achieve.searching sorting will be done in modal form.
$("#Loadqty_detl").off("click");
$(document).on("click", "#Loadqty_detl", function () {
var dlg1= $('<div id=DialogDiv>').dialog({
height: $(document).height() - 100,
width: $(document).width() - 100,
appendTo:"form",
closeOnEscape: true,
autoOpen: false,
modal: true,
title: "Message",
open: function () {
$(this).load('Ord_Quantitydetl.aspx');
},
show: {
effect: "blind",
duration: 500
},
hide: {
effect: "clip",
duration: 1000
},
buttons: {
Submit: function () {
$("[id*=btnmsgOk]").click();
},
Close: function () {
$(this).dialog("close");
}
}
});
dlg1.dialog("open");
});
推荐答案
( #Loadqty_detl)。off( 点击);
("#Loadqty_detl").off("click");
( document )。on( 单击, #Loadqty_detl, function (){
var dlg1 =
(document).on("click", "#Loadqty_detl", function () { var dlg1=
(' < div id = DialogDiv>')。dialog({
height:
('<div id=DialogDiv>').dialog({ height:
这篇关于如何以模态形式执行回发并将弹出窗口保留在父窗体上。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文