如何从菜单控件中调用EXE或VBS文件? [英] How to call an EXE or VBS file from the menu control?

查看:130
本文介绍了如何从菜单控件中调用EXE或VBS文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET菜单控件是用于多视图和多页面导航的便捷设计.在我的应用程序中,选择菜单项后,我需要调用某些旧版应用程序(以EXE或VBScript文件的形式).我该怎么做?

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?

推荐答案

您可以放置​​一个链接,该链接将导航到您的文件.即
You can put a link that will navigate to your file. i.e
<a href="~/myexe.exe">My exe</a>


做完了.

但是,要从Web应用程序执行某种方法,您应该将该方法公开为 Web服务 [ ^ ]或


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.


这篇关于如何从菜单控件中调用EXE或VBS文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆