且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在ASP.NET中使用Web应用程序嵌入Windows窗体

更新时间:2023-10-19 14:44:16

没办法.只需抛出您的System.Windows.Forms UI并编写ASP.NET UI.这就是为什么UI应该与代码的其他方面完全隔离的原因.

—SA
No way. Just throw out your System.Windows.Forms UI and write ASP.NET UI. That''s why the UI should have been thoroughly isolated from other aspects of your code.

—SA


您的术语感到困惑或使用不当,其结果是您将我们的废话弄糊涂了.

在网络上发布"表示您希望通过单击网页上的链接将应用程序安装在用户工作站上.如果使用ClickOnce部署打包了应用程序,则可以完成此操作.

如果您希望用户能够在网页内运行"您的应用程序,那就算了.不会发生.您自己的选择是遵循SA的建议并将您的应用程序重写为ASP.NET(WebForms)应用程序.


唯一关心您的电子邮件地址的人就是垃圾邮件发送者.除非您喜欢淹没在垃圾邮件中,否则请勿将您的电子邮件地址发布到公共论坛.
Your getting your terms confused or are using them improperly and the result is your confusing the crap out of us.

"Publish" on the web means that you want the application to install on the users workstation from a link you click on a web page. This can be accomplished if you packaged your application using ClickOnce Deployment.

If you want the user to be able to "run" your application inside a web page, forget it. Not going to happen. Your ownly option here is to follow SA''s advice and rewrite your application as a ASP.NET (WebForms) app.


And the only people who care about your email address are spammers. Don''t EVER post your email address to a public forum unless you like drowning in spam mail.


如果您的应用程序在WPF中,则可以相对轻松地将其转换为Silverlight并嵌入为浏览器中的富客户端应用程序.不过,这需要用户拥有插件.
If your application is in WPF you could relatively easily convert it to Silverlight and embed it as a rich client application in a browser. That requires the user to have the plugin, though.