jinal11 says:
function gridmodalpopup() {
$("#dialog2").dialog({
title: "Details",
width: 700,
height: 410,
modal: true,
closeOnEscape: false,
buttons: [{
text: "Confirm",
click: function () {
document.getElementById('<%=btnsave.ClientID%>').click();
$(this).dialog('destroy').remove();
}
}, {
text: "Close",
click: function () {
$(this).dialog('destroy').remove();
}
}]
});
};
Replace the above function with the below.
function gridmodalpopup() {
$("#dialog2").dialog({
title: "Details",
width: 700,
height: 410,
modal: true,
closeOnEscape: false,
buttons: [{
text: "Confirm",
click: function () {
document.getElementById('<%=btnsave.ClientID%>').click();
$(this).dialog('destroy').remove();
}
}, {
text: "Close",
click: function () {
$(this).dialog('destroy').remove();
}
}]
}).parent().appendTo("form");
};