To Access Notepad, calculator through asp.net

前端 未结 6 854
孤街浪徒
孤街浪徒 2021-01-23 15:47

I m trying to open Notepad, Calculator in button click in asp.net with code behind C#. I tried with the code

 System.Diagnostics.Process.Start(\"c:\\\\windows\\\         


        
6条回答
  •  抹茶落季
    2021-01-23 15:53

    What you are trying to achieve is not possible because of the nature of application in case of ASP.Net. The application will execute on server and will only send client side HTML to client. Even if your code is syntatically correct, it would open up the utilities on server itself.

提交回复
热议问题