Call window application from ASPX page on localhost
-
I've created a small .Net webApp (ClassRegWebSolution), and what it does is to register students. However this webApp only runs on one system (i.e: The same system is the client and the server), but the DB resides on a central server elsewhere. I want to capture student images on the web page via a webcam, but can't accomplish this. So i've decided to write a winApp (imageCapture) that can capture images real-time. The problem now is calling the imageCapture to run when the user clicks a button on the .aspx page. Pls how can i acomplish this?
He who goes for revenge must first dig two graves.
-
I've created a small .Net webApp (ClassRegWebSolution), and what it does is to register students. However this webApp only runs on one system (i.e: The same system is the client and the server), but the DB resides on a central server elsewhere. I want to capture student images on the web page via a webcam, but can't accomplish this. So i've decided to write a winApp (imageCapture) that can capture images real-time. The problem now is calling the imageCapture to run when the user clicks a button on the .aspx page. Pls how can i acomplish this?
He who goes for revenge must first dig two graves.
-
I've created a small .Net webApp (ClassRegWebSolution), and what it does is to register students. However this webApp only runs on one system (i.e: The same system is the client and the server), but the DB resides on a central server elsewhere. I want to capture student images on the web page via a webcam, but can't accomplish this. So i've decided to write a winApp (imageCapture) that can capture images real-time. The problem now is calling the imageCapture to run when the user clicks a button on the .aspx page. Pls how can i acomplish this?
He who goes for revenge must first dig two graves.
No man, its not possible. One thing is possible for your case is to embed a Web Browser control and navigate to the page and invoke this from your win app directly on the web event. Otherwise if you want to access your win app from normal browsers, it cant do. There is another alternative as well. I thought you said that both windows application and web runs on the same system. In such a case you can use a direct call to your webcam from the server side too. but this will only work from the server. Hope this would help you. Cheers.
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->****
InfoBox Visual Studio 2010 Extension
Windows7 API Code Pack
Simplify Code Using NDepend** -
I've created a small .Net webApp (ClassRegWebSolution), and what it does is to register students. However this webApp only runs on one system (i.e: The same system is the client and the server), but the DB resides on a central server elsewhere. I want to capture student images on the web page via a webcam, but can't accomplish this. So i've decided to write a winApp (imageCapture) that can capture images real-time. The problem now is calling the imageCapture to run when the user clicks a button on the .aspx page. Pls how can i acomplish this?
He who goes for revenge must first dig two graves.
If your windows & web application resides on same system/server you can use System.Diagnostics.Process to run your window application.
System.Diagnostics.ProcessStartInfo info = new system.Diagnostics.ProcessStartInfo("D:\MyWindow.exe");//FullpathOfYourWindow
System.Diagnostics.Process p1 = System.Diagnostics.Process();p1.StartInfo = info;
p1.Start(); //Your windows application will run.