Click here to Skip to main content
15,914,780 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I am calling model popup in my parent page (in a textbox double click event). I am showing checkbox list in the model popup window, if user select some of the checkboxes and close the model popup window. Then i need to execute a method in parent page page load event by using the checkbox checked string. I return the checked string in an array. I am using Script Manager with content template in parent page.

The problem is the page load event not firing when i exit the window.ShowModelPopup() child window. I tried alot using google search. but i am unable to got the solutions.

I tried in the below ways:
C#
window.opener.Refresh();//not working
window.opener.locaiton.reload();//not working

C#
function Refresh() {
           __doPostBack('UpdatePanel1', '');
       }// not working

Any body please give me an idea. how to slove this?
Thanks in advance.
Posted
Updated 2-Oct-13 21:33pm
v2

1 solution

Hey there,

you should place the line window.location.reload(); right after where you used window.showModalDialog

Like:
JavaScript
window.showModalDialog('YourPage.aspx');
 window.location.reload();


Hope it helps.

Azee...
 
Share this answer
 
Comments
Murthy_RDV 3-Oct-13 3:25am    
Hi AZee,
the above code works fine, but it refresh my complete parent page, and all the textboxes are refreshed. I need the parent page input value will be remind same, and the page load will work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900