Click here to Skip to main content
15,917,177 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi!
how to call e-speaking.exe file into a asp.net page
Posted

 
Share this answer
 
This question has been posted a lot of time. It would have been great if you can sreach them first. i have already answered the same type of question yesterday.

how to call window form on web form click event[^]

execute an windows application.
C#
 using System.Diagnostics;
 
Process.Start("example.exe");


this code will execute on server and it iff expect that the exe is at server and will run on server only.

If you wish to execute some code on clients machine in that case you can use ActiveX Objects in Javascript.
JavaScript
function runWinZip() {
var shell = new ActiveXObject("WScript.shell");
shell.run("winzip.exe");
}
 
<input type="button" name="button1" value="Run Winzip" onclick="runWinZip()" />


Make sure your path of exe is correct every where.
 
Share this answer
 
 
Share this answer
 
Dear Its not possible to run an exe files inside the asp.net (HTML rendered pages) page.

if you are planning to start a process then it will run in windows
process.Start


as i am able to understand your requirement can only be fulfilled through flash
so you need to convert your exe files to flash then only you will be able to run the output to the user screen.
 
Share this answer
 
Comments
Mahesh_Bhosale 2-Sep-13 11:10am    
how to convert exe to flash

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