Code to refresh parent window on close of child window.
Put the below code in <head> tag of aspx page of child window.
<script type="text/jscript">
window.onunload = refreshParent;
function refreshParent() {
var loc = window.opener.location;
window.opener.location = loc;
}
</script>
Put the below code in <head> tag of aspx page of child window.
<script type="text/jscript">
window.onunload = refreshParent;
function refreshParent() {
var loc = window.opener.location;
window.opener.location = loc;
}
</script>
Good job Mayank. You have extensive skills in Asp.net and C#.
ReplyDeleteGood job Mayank. You have extensive skills in Asp.net and C#.
ReplyDelete