I'm trying to close and application using C# and ASP.NET. I've tried system.windows.forms.application.exit() but it just refreshes the screen. I tried Environment.Exit(0) but that just ended the application and returned an error in the browser. Please help anyway you can!! Thanks!
I dont think the postback will occur if they select "OK" to closing the browser window. It sounds more like you're trying to post back and in the response have the browser close, but not as a client side event to clicking the button.
>how do I close the WEB app from the C# code behind page?!?!?