Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi folks,

I need to refresh parent window when child window is closing. And I did that. ( I will get this child window when I click on Show button.)

Now, the problem is, I have a grid, which will be loaded when the page loads in my parent window.

If I sort it and click on Show button. Now I got the child window and when I am closing the child window my parent window is getting refreshed. And due to which my grid also filled again.

And I kept the below and which is showing as false and the breakpoint is entering into the if condition.
VB
If Not IsPostBack Then

End If


Please help me in this.

Thanks in advance.
Posted

1 solution

You can do it via JavaScript.

Have a look at this article: Partial update of parent page via AJAX (ASP.NET 2.0) on close of a child window - conditionally[^]
This is a C# sample but will give you full detail and how things happen.
 
Share this answer
 

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