Click to See Complete Forum and Search --> : How to open a window form ?


paulnamroud
03-24-2009, 11:04 AM
Hi all,

I have a main application developped with VB.net. And the dashboard is developped with asp.net.

From the dashboard i would like to click and get the detail information by opening the VB.net window form.

Can anymone tell me how to open a window form from asp.net page and send some parameters ?

I need to open it either by clicking on a button or by clicking an hyperlink.

Thank you

Paul
http://www.geniatek.com

Hack
03-24-2009, 12:24 PM
Is this "window form" an actual compiled EXE file?

paulnamroud
03-24-2009, 12:35 PM
Yes it is an .exe compiled file. It's a vb.net application.

Phil Weber
03-24-2009, 12:37 PM
It is not possible to launch a local executable directly from ASP.NET (or even JavaScript) code. This would present a huge security risk. One option is to create a UserControl and use the <object> tag to embed it into your ASP.NET page. Give the UserControl a method (e.g., LaunchExecutable) which uses Process.Start to launch your app. Finally, call that method from JavaScript on your page. See this page for more information: http://msmvps.com/blogs/pauldomag/archive/2006/08/16/107758.aspx

Another option is to duplicate your Windows Form's functionality in Silverlight, which you may embed directly in the browser. This has the advantage of also working on non-Windows platforms.