You cannot have a desktop Windows application running on the web server and
displaying the rich interface on the user’s browser.
If you want the GUI interface of the Windows application to display to the
user then it can only be done for users that can trust the executable file to
run on their own desktop.
This means that such solution is only suitable for intranet users (internal
employees within the organization). Then you can pass parameters through the
URL the executes the program, e.g.
http://ntranet.mycompany.ca/myapplic...t¶m2=test2
The Windows application can use the Environment.CommandLine to pick up the
entire URL and parse it to get any parameters that you passed through to it.
The Environment.GetCommandLineArgs returns a collection where the first
element is the path on the server for the IEExec.exe file and the second
argument is the URL line (including your passed parameters) plus a GUID.
--
HTH,
Phillip Williams
http://www.societopia.net http://www.webswapp.com
"MS" wrote:
Hi,
I have an Gui Application written in C#.net. Is it possible to launch my
application from a web application. I also need to pass a parameter to this
application so that appropriate data is loaded based on user Id.
Is it possible to do this? If so, Can anyone please suggest how to
accomplish this.
Thanks in advance