我们如何从asp.net打开窗口表单 [英] how can we open window form from asp.net

查看:51
本文介绍了我们如何从asp.net打开窗口表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何从asp.net页面的按钮单击中打开vb.net表单.?

how can i open vb.net form from my asp.net page''s button click.?

推荐答案

您不能直接将Windows Form添加到ASP.NET页面.您可以将Windows Form控件添加到页面中,如下所示:

http://www.4guysfromrolla.com/articles/052604-1.aspx [ ^ ]

如果您只想在单击按钮时启动Windows Form应用程序,则本文中接受的答案可能会有所帮助:

http://forums.asp.net/t/1762337.aspx/1?Intergrate + windows + form + in + asp + net + page [
You cannot directly add a Windows Form to a ASP.NET page. You can add a Windows Form control to the page like so:

http://www.4guysfromrolla.com/articles/052604-1.aspx[^]

If you just want to launch the Windows Form application when the button is clicked, the accepted answer in this post might help:

http://forums.asp.net/t/1762337.aspx/1?Intergrate+windows+form+in+asp+net+page[^]

The problem is that even if it works, it will run on the server, not on the client. That will get very messy and eventually it will probably crash your server (processes that don''t shut down properly cloging up the memory).

My suggestion would be to look into all the things ASP.NET webforms and jQuery can do. I would imaging that almost anything you want to do can be done in the browser the proper way without needing to resort to this ugly workarounds.


这篇关于我们如何从asp.net打开窗口表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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