Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
ASP.NET menu control is a handy design for multi-view and multi-page navigation. In my application, I need to call some legacy applications (in the form of EXE or VBScript file) when a menu item is selected. How do I do that?
Posted
Comments
Ali Al Omairi(Abu AlHassan) 27-May-11 18:23pm    
i think you set the url property to the name of the file.

1 solution

You can put a link that will navigate to your file. i.e
HTML
<a href="~/myexe.exe">My exe</a>

You done.

But, to execute some method from your web application, you should expose the method as Web Services[^] or WCF[^]. After you do these, it will be quite easy to consume the exe method.

Cheers.
 
Share this answer
 
Comments
Jun Du 31-May-11 10:47am    
My app is actually a VB script file. Your suggestion works, but the browser shows a couple of security warnings. I can live with that at the moment. Since it's an intranet app, we should be able to remove the warnings without japardizing the security. How do I do this programmably?
Wonde Tadesse 31-May-11 19:23pm    
I don't think you can achieve by coding. It's a browser setting issue and it depends on what browser the site is being accessed. So for IE you can use the following link to disable the security warning. http://windows.microsoft.com/en-US/windows-vista/Internet-Explorer-Information-bar-frequently-asked-questions#4.

Note: If your are using IE9, I don't think you can disable this setting.

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