如何创建混合 Silverlight 和 aspx 应用程序

发布于 2024-08-19 05:58:00 字数 358 浏览 4 评论 0原文

这是我的场景..

我们有一个 ASP.Net 2.x 网站。我们希望将其迁移到 Silverlight 全框架应用程序。然而,我们不可能在某个角落立即重做 SL 中的每个网页。

我想做的是在 SL 中构建应用程序的 chrome(主页、仪表板、登录、通用系统/配置屏幕、主菜单),并能够在主要内容 SL 框架中打开现有的 .aspx 页面。

据我所知,没有办法做到这一点。我认为 SL4 中的 Webbrowser 控件将是答案,但显然只有当您的应用程序在浏览器中运行时才有效。

那么,我最好的办法是什么?看来我必须创建某种类型的 .aspx 页面来托管 .XAP 并传入我希望它加载的页面?

你们大师会如何处理这个问题?

Here is my scenerio..

We have an ASP.Net 2.x web site. We want to migrate it to Silverlight full frame application. However, there is no way we can go away in a corner and redo every web page in SL right off the bat.

What I would like to do is build the chrome of the app (main page, dashboard, login, common system/config screens, main menu) in SL and be able to open existing .aspx pages in the main content SL frame.

From what I see there is no way to do this. I thought the Webbrowser control in SL4 would be the answer, but apparently that only works if your app is run out of browser.

So, what is my best recourse? It seems like I will have to create some type of .aspx page that hosts the .XAP and pass in the page I want it to load?

How would you gurus approach this?

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

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

发布评论

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

评论(1

顾忌 2024-08-26 05:58:00

实际上我会走相反的路线。我将开始尽可能多地单独构建仪表板元素,而不是构建完整的仪表板。这将使您有时间一一重构您的各个应用程序,直到您准备好将它们全部集成为止。

我们团队考虑的一种方法是构建 SL 渲染引擎,将 aspx 渲染到 SL 控件中,但是当我们看到其范围时,我们决定从头开始在 SL 中开发所有内容会更容易。

I would actually go the opposite route actually. Intead of building the full dashboard, i would begin building the dashboard elements separately as much as you can. This will give you time to refactor your individual applications one by one until you're ready to integrate them all.

One method we considered on my team was to build our SL rendering engine to render our aspx into SL controls, but when we saw the scope of that we decided it would be easier just to begin developing everything in SL from scratch.

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