Click here to Skip to main content
16,005,181 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Need to know about opening a exe from asp.net application.It works fine in development machine through "Process",But if i host the same in web server when i click the function for opening exe (Notepad.exe) it opens in the web server not in user machine. Is there any way to open it user side.

Thanks,

Siva

What I have tried:

tried using Process.Start but it opens in server machine
Posted
Updated 24-Aug-17 4:04am

All of your ASP.NET code runs on the server, so it makes sense that it opens notepad on your server. Your server returns HTML/CSS/JavaScript to the client. However, JavaScript can't run applications on the client computer, for obvious security reasons. So, you cannot do what you want here.
 
Share this answer
 
Quote:
it opens in the web server not in user machine.

Because ASP runs on server.
A webapp can't run anything on client side because of a silly thing named security.
If a webapp was able to do such things, any website would be able to turn your PC to a zombie.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900