IT Community - Software Programming, Web Development and Technical Support

Need to close parent window after closing child window.

This is a discussion on Need to close parent window after closing child window. within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi Dot Net geeks! I need a solution for my big one problem. My problem is that I have a ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-28-2007, 10:27 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Question Need to close parent window after closing child window.

Hi Dot Net geeks!

I need a solution for my big one problem.

My problem is that I have a parent window and a child window are opened. And I want to disable the X button of Parent window from title window bar. So that we have to close the child window first then only parent window .

Is any Idea?
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-28-2007, 11:14 PM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Cool Re: Need to close parent window after closing child window.

Hey Vinoth,

If u wanna open child window from parent window then just create an object of that child window and then use showdialog method to open that child window from parent window.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-10-2007, 02:34 AM
jeyaprakash.c jeyaprakash.c is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 228
jeyaprakash.c is on a distinguished road
Smile Re: Need to close parent window after closing child window.

Hi all,

I dont think there is any possible to disable the X button in the parent window.
but you can close the child window after closing the parent window or you can check whether any child window is opened before closing the parent window.
__________________
thanx n regards
jeyaprakash.c
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-11-2007, 10:49 PM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Smile Re: Need to close parent window after closing child window.

Well! if u want to hide the x button of ur form then u can make the ControlBox property of parent form to FALSE! (another tip).
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-12-2007, 11:51 PM
jeyaprakash.c jeyaprakash.c is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 228
jeyaprakash.c is on a distinguished road
Smile Re: Need to close parent window after closing child window.

i think, we can use this showdialog method only in win forms
__________________
thanx n regards
jeyaprakash.c
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-15-2007, 10:30 PM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Smile Re: Need to close parent window after closing child window.

Yes Prakash....that's for windows application.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-05-2007, 05:08 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Smile Re: Need to close parent window after closing child window.

Hi all,

I'm working in web based project...So pls give me suggession for that...
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session never expires in site unless you close the window ursklakshmanan PHP Programming 1 03-31-2008 02:07 AM
Is it possible to close the parent window (main web browser window) from a child win gp_logesh HTML, CSS and Javascript Coding Techniques 1 10-29-2007 03:53 AM
Session in child window Sivamurugan PHP Programming 3 09-11-2007 04:39 AM
How to pass the value from the child window to parent window in javascript? kingmaker HTML, CSS and Javascript Coding Techniques 1 09-04-2007 02:18 AM
How to connect a Database while closing the browser window in asp .net ? oxygen ASP and ASP.NET Programming 5 07-20-2007 02:20 AM


All times are GMT -7. The time now is 05:41 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0