<script type="text/javascript">
$(document).ready(function () {
$("#popup").dialog({
draggable: false,
resizable: false,
autoOpen: false,
width: 600,
height: "auto",
bgiframe: false,
modal: true
});
$("#popup").parent().appendTo($("form:first"));
$("#btnSubmit").on("click", function () {
$("#popup").dialog("open");
});
$("#btnClose").on("click", function () {
$("#popup").dialog("close");
});
});
</script>
<form id="form1" runat="server">
<div>
...
Go to the complete details ...