Hi,
Does anyone know how to run an external program from ASP.NET.
The System.Diagnostics.Process or Shell() functions do not work for opening GUI applications like NotePad. I need my ASP.NET web form to open a Windows application that we be installed on the Client. Any ideas?
If you want to open an external app on the client, then asp.net won't help. Asp.net is server side. When using System.Diagnostics.Process, you can open external apps, but it opens on the web server, not the clients machine.
If you want to open an app, such as notepad, on the client machine, you need to use client side scripting such as javascript. NOTE: Most of the time, this won't work unless you lossen up the security, so it's very risky.
Anyway, here's a sample code to launch apps on the client.
You are correct. This is more suitable for an intranet environment. Thanks for the clarification. I'd like to stress, even in an intranet environment, you still have to relax the security requirements a whole lot to make this work.
<input type = "BUTTON" value = "Push Me!" name = "Command1" onclick="todo()">
but it doesnt seem to work
please helpme.
Last edited by peter_budo; Jun 26th, 2009 at 4:04 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.