Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Fri, 3 Oct 2008 12:46:11 -0500,    group: microsoft.public.dotnet.framework.aspnet        back       


Closing the currently active window   
Hi,

I popupped a new asp.net window. Within it I want to display an explicit 
close button.  How .Net object can I call to close this popup window 
programmatically?

King
date: Fri, 3 Oct 2008 12:46:11 -0500   author:   King Coffee

Re: Closing the currently active window   
"King Coffee"  wrote in message 
news:D21E732C-6CB2-4907-892F-15973BCB5E9D@microsoft.com...

> I popped up a new ASP.NET window.

Please clarify what you mean by an "ASP.NET window" - do you mean a browser 
window...?

> Within it I want to display an explicit close button.  How .Net object can 
> I call to close this popup window programmatically?

Assuming you do actually mean a browser window, you can't close it with .NET 
because that runs server-side. You'll need to use client-side JavaScript.

<input type="button" value="Close" 
onclick="window.opener=null;window.close();" />


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
date: Fri, 3 Oct 2008 19:01:37 +0100   author:   Mark Rae [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us