如何将VB Windows窗体应用程序添加到ASP Web应用程序 [英] how to add VB windows forms application to ASP web application

查看:215
本文介绍了如何将VB Windows窗体应用程序添加到ASP Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..
我以Windows窗体(在vb.net中)开发了Windows网络摄像头应用程序.现在的问题是,我想将其添加到asp.net Web应用程序中.
可以从中提供任何帮助...

Hi..
i developed windows web-cam application in windows form ( in vb.net).Now the problem is this i want to add to the asp.net web application.
can any help out from this...

推荐答案

您不能.没有任何明智的方式.

看来您不知道ASP.NET是如何工作的.我无法帮助您解决您的困惑,因为我不知道您想念什么.可能您需要了解APS.NET在服务器端工作.在客户端,客户端获得纯HTML且不必具有.NET,因此,您不能说任何形式(在System.Window.Forms的意义上)或任何其他.NET代码.在服务器端显示表单将毫无意义-客户需要表单,但它们都位于客户端.

您可能要从非常基础的内容开始:
http://www.asp.net/get-started [
You cannot. Not in any sensible way.

It looks like you have no idea how ASP.NET works. I cannot help you with your confusion because I have no idea what are you missing. Probably you need to understand that APS.NET works on server side. On client side, the client gets pure HTML and does not have to have .NET, hence, you cannot speak of any forms (in the sense of System.Window.Forms) or any other .NET codes. Showing a form on server side would be pointless — the forms are needed for customers, but they all sit on client side.

You may want to start with very basics:
http://www.asp.net/get-started[^].

—SA


Web应用程序仅限于客户端,而winform应用程序可能需要大量系统资源.

您可以创建一个Windows控件并将其托管在Web应用程序中,并且需要执行很多权限.

您可以通过Google搜索在asp.net中托管Winform控件"来实现自己的目标.

MSDN文章对这些要求进行了评论:
http://msdn.microsoft.com/hi-in/magazine/cc301932(en -us).aspx [ ^ ]

希望这会有所帮助.

谢谢,
Hemant
The web applications are restricted on clients and winform application may require lot of system resources.

You can create a windows control and host it in web application, and there were lot of execution permission you will need to take care of.

you can google for "Hosting winform control in asp.net" for what you want to achieve.

the MSDN article taks about the premissions:
http://msdn.microsoft.com/hi-in/magazine/cc301932(en-us).aspx[^]

Hope this will help.

Thanks,
Hemant


如果您要寻找的只是您的应用程序来自网站的感觉",那么您可以考虑使用ClickOnce [
If all you are looking for is the "feel" that your application came from a website, you could look into publishing your app with ClickOnce[^]. It has an option that allows you to run the app on the user''s machine without saving shortcuts on the desktop/start menu so when you run it, it feels a bit more like you''re just running a component. In the background it is still installing the app as if it''s a PC program, just in a temporary folder.

---Update---
Using ClickOnce you can also pass some information from the website to the PC app by using query string parms.


这篇关于如何将VB Windows窗体应用程序添加到ASP Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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