Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > closing parent window and child window

Reply
Thread Tools

closing parent window and child window

 
 
JohnE
Guest
Posts: n/a
 
      01-10-2010
I have a masterpage that has a linkbutton on it for logging out (or closing
the window), so it is the same on all pages associated with the masterpage.
The parent page is not opened using javascript. The child windows are using
javascript. Below is the javascript function and the linkbutton for the
logout.

function CloseWindow()
{
window.close();
child =
window.open('../LogOut.aspx','_blank','height=480,width=640,resiza ble=no,scrollbars=no,menubar=no,status=no')
}

<asp:LinkButton ID="lbtnLogOut" runat="server" OnClientClick="CloseWindow()"
>Log Out</asp:LinkButton>


I am asking if anyone has information that would allow the function to
decide if the window is a child or the parent? If child then no logout
window is needed. If parent, then the logout window is needed as it allows
the user to re-enter, or close out and go home.

Thanks
John
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
closing the child window and refreshing the parent window Ane007 The Lounge 1 05-05-2008 06:54 AM
Closing popup window when closing parent window? =?Utf-8?B?Vk1J?= ASP .Net 3 02-15-2007 08:29 AM
Closing child window and refreshing Parent window automatically =?Utf-8?B?U2lsZWVzaA==?= ASP .Net 4 10-14-2004 02:01 AM
Closing Child window from parent window gokul Javascript 3 12-02-2003 06:42 PM
Closing child window WITHOUT closing parent thomas Javascript 0 10-23-2003 04:10 PM



Advertisments