Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

Reload parent page after closing the popup

$
0
0
Hi All,
 
I am trying to reload parent page from a popup, after closing the popup, I am trying to reload the parent page and it is going into parent pages load method and loading everything, but showing the old value on the label. It seems it is executing parent reload before code behind. Can anybody please help me in this? Here is the code that I am calling in save click on client side, then it is calling the parent reload after that it is saving it seems? How can I change it to execute the the code behind click even first and then executing the reload?
 
if ((RedirectUrl != null) && (RedirectUrl != undefined) && RedirectUrl) {
                    if (NewRole && (NewRole == "N")) {
                        alert(NewRole);                        
                        parent.location.href = RedirectUrl;
                        parent.location.reload();
                        //window.top.location.reload();
//window.opener.location.reload();
                    }
                }
Thanks & Regards,
 
Abdul Aleem Mohammad
St Louis MO - USA

Viewing all articles
Browse latest Browse all 3938

Trending Articles