Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to stop the running application programmatically in C#?.

Status
Not open for further replies.

z07924

IS-IT--Management
Feb 18, 2002
122
GB
How to prgrammatically stop the running application on the click event using button in ASP.Net.

I know in vb, it is a one line command. In the click event just add END, it will stop the running application.

The samthing I want to do it in .Net using C#.

Any help would be appreciated...

Thanks in Advance.
 
in ASP.NET the client is the web browser. You can't shut down the browser, unless you send in some code like

Response.Clear()
Response.Write(&quot;<script language=javascript>window.close();</script>&quot;)
Response.End()

this would make a request to close the browser, which would in turn end your session.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top