我可以在 CAB WinForms 应用程序中托管 ASP.NET 应用程序吗?

发布于 2024-07-13 04:53:33 字数 258 浏览 6 评论 0原文

我有一个 .NET 2.0 WinForms 应用程序,它是使用复合应用程序块和智能客户端软件工厂开发的。

我正在考虑开发一个包含浏览器控件的模块,该控件将使用用户登录 WinForms 客户端时建立的凭据来访问 ASP.NET 网站。

我的目标是使用此策略将客户端中当前的所有模块转换为 ASP.NET,并淘汰“智能”客户端。 WinForms 客户端的安全性当前是使用 ASP.NET 成员资格功能来实现的。

这可能吗? 明智吗?

I have a .NET 2.0 WinForms application that was developed using the Composite Application Block and Smart Client Software Factory.

I'm considering the development of a module that would contain a browser control that would access the ASP.NET website using credentials established when the user logged into the WinForms client.

My goal is to use this strategy to transition all of the modules that are currently in the client to ASP.NET and retire the 'smart' client. Security for the WinForms client is currently implemented using the ASP.NET Membership functionality.

Is this possible? Sensible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

扮仙女 2024-07-20 04:53:33

是的你可以。 制作一个托管 WebBrowser 控件的 SmartPart,添加一些用于向前和向后导航的按钮以及一个 url 文本框; 然后将 WebBrowser 控件指向 Web 应用程序的 URL。

这是明智的。 我们使用 CAB/SCSF 创建了一个称为“集成桌面”的应用程序。 该应用程序作为公司所有内部应用程序的平台; 一切都集成到这个桌面应用程序中。 我们添加了一个基础模块,基本上是我在上一段中描述的功能强大的版本,以方便网页浏览,因为一些预先存在的应用程序是基于网络的,并且我们的用户希望在他们正在执行所有操作的同一位置访问这些应用程序其他工作。 一件很酷的事情是使用 WebBrowser 的 ObjectForScripting 属性允许桌面应用程序和内部托管的 Web 应用程序之间实现某种程度的无缝集成。

Yes, you can. Make a SmartPart that hosts the WebBrowser control, add some buttons for forward and backward navigation, and a url textbox; then point the WebBrowser control at your web application's URL.

It is sensible. We used CAB/SCSF to create an application we called "The Integrated Desktop". This application serves as the platform for all internal apps for the company; everything is integrated into this one desktop application. We added a foundational module, basically a beefy version of what I described in the above paragraph, to facilitate web browsing since a few pre-existing apps were web-based and our users wanted access to those at the same place they were doing all their other work. One cool thing was the use of the WebBrowser's ObjectForScripting property that allowed for somewhat seamless integration between the desktop app and the web app being hosted inside.

情徒 2024-07-20 04:53:33

您有什么要求?

您会选择网络应用程序而不是智能客户端:

  1. 如果您必须接触到以下人群,
    不在 Windows 平台上或者
  2. 您需要
    零安装应用程序

如果您的应用程序用户必须通过智能客户端(浏览器控制)访问 Web 应用程序,您将缺少 (1) 和 (2)。 在我看来,这会违背其目的。

What are your requirements?

You would choose a web app over a smart client mainly

  1. if you have to reach people that
    are not on the Windows platform or
  2. you have a need for a
    zero-install app

By having your app users having to access the web app via the smart client (browser-control) you would be missing (1) and (2). In my opinion it would defeat its purpose.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文