In this web-healer.blogspot.com's web programming tutorial we will learn that how we can shutdown our computer by clicking on a button from our website. So below is the dream code just copy and paste it. and use it in your button's onClick event.
System.Diagnostics.Process.Start("shutdown.exe", "-s -t 0")
Tags:
asp.net