How To Close Browser Window With Button Click?
To close a web browser you need to use client side JavaScript code. You can add it to OnClick attribute of Button control, like this:
[ C# ]
btnClose.Attributes.Add("OnClick", "window.close();");
[ VB.NET ]
btnClose.Attributes.Add("OnClick", "window.close();")
Related articles:
1. Using ADO.NET to Develop Data Access Logic (DAL)
2. ASP.NET 3.5 Project Development
Copyright © 2002-2008 Bean Software. All rights reserved.