Ravi Kumar

Ravi Kumar

  • 784
  • 1.1k
  • 31.2k

Page Reload problem in asp.net using jquery

Feb 28 2016 8:22 AM
hi
can any one help me
i am opening jquery modal popup.
while closing pop-up reloading the aspx page
its not getting reloading properly
 
-- check the fallowing code
<link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js" ></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>


<script type="text/javascript">
$(function () {
$('#lnkAddSubTask1').click(function () {
var mydiv = $('#popupdiv');
mydiv.dialog({
autoOpen: false, width: 1230, height: 850, modal: true,
close: function () {
location.reload();
}
//buttons: {
// Close: function () {
// window.location.reload(true);
// }
//}
});
// Load the content using AJAX
mydiv.load('AddSubTask.aspx');
// Open the dialog
mydiv.dialog('open');
});
})

</script>
 
 

Answers (2)