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

I have aspx page with Menu(Menu.ascx page) controls .
The parent page(create.aspx) contain buttons, when i click on button it open child page(Find.aspx) page.When i click on menu(Menu.aspx) i have to close my child window(Find.aspx) without closing parent window(Create.aspx) ...........Have to do all the functionality using java script or J Query
Posted
Comments
Vani Kulkarni 26-Jun-12 3:10am    
Find.aspx is the child window of Create.aspx correct? Where is Menu.aspx connected here?

1 solution

Did you try anything?

All you need to do is call close method of the new window opened. Something like: myNewPopupWindow.close();
Refer: window.close[^]

Start from here: Google result: About 287,000 results (0.27 seconds)[^] to get links like these: How to close child windows when closing parent window in javascript? [^] and try out.
 
Share this answer
 
Comments
apraurnk 26-Jun-12 3:33am    
i tried. i can't able to close the Find.aspx when i click on Menu.ascx
Sandeep Mewara 26-Jun-12 6:54am    
That does not make much sense. Sounds like you are trying to do something of which you have no idea. If you are even able to open a new(child) window form parent page then it is straight forward.

Please go through the code and see how it is created. Go though links I have shared to connect and think of how things look and 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