在ASP.NET页面中调用VB.NET表单 [英] Call a VB.NET form in ASP.NET page

查看:53
本文介绍了在ASP.NET页面中调用VB.NET表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VB.NET中创建了一个基于Windows的窗体.我可以在asp.net页面中调用此表单吗?另外,如果我想在ASP.NET中调用VB.NET项目,是否可以做到?

I have a windows based form created in VB.NET. Can I call this form in an asp.net page? ALso, if I want to call a VB.NET project in ASP.NET, is there a way to do it?

推荐答案

不,它们是独立的环境.如果您将逻辑与表单分开,则当然可以在ASP.NET中使用它.
No, they are seperate environments. If you seperate the the logic from the form you can of course use that in ASP.NET


实际上,根据您的vb.net项目的复杂程度,...存在一种方法可以从asp.net网站上调用它.如果您使用 ClickOnce [ ^ ],然后设置您的asp.net网站上包含一个页面,该页面具有指向已发布的ClickOnce位置的链接,它可以起到这种作用.甚至有启动启动时将参数从asp.net传递到vb.net的方法.

还有很多代码项目文章 [
Actually, depending upon how complex your vb.net project is...there is a way to kind of call it from an asp.net website. If you publish your vb.net windows based project using ClickOnce[^] and then setup your asp.net website to include a page that has a link to the published ClickOnce location it can give that effect. There are even ways to pass parms from the asp.net into the vb.net when it launches.

There are also a bunch of Code Project Articles[^] for ClickOnce that might guide you in the right direction.

Hope this helps.


Hello Kschuler,

谢谢回复.实际上,我已经拥有功能完善的完整VB6应用程序(例如库存系统).
我想使其基于网络. clickOnce可以帮助我做到这一点吗?我的意思是,当我从asp.net网页调用vb应用程序时,整个应用程序(不包括表单及其事件等)是否会像在VB6中那样运行?
谢谢
Hello Kschuler ,

Thanks for the reply. Actually I already have a full fledged VB6 applciation (like an inventory system) that is working perfectly.
I want to make it web based. Will the clickOnce help me do that? i mean when I call the vb applciation from an asp.net web page, will the whole application (iuncluding the forms and their events etc.) run the way it does in VB6 ?

Thanks


这篇关于在ASP.NET页面中调用VB.NET表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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