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
"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