简体   繁体   English

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

[英]How can I create a hybrid Silverlight and aspx application

Here is my scenerio.. 这是我的场景。

We have an ASP.Net 2.x web site. 我们有一个ASP.Net 2.x网站。 We want to migrate it to Silverlight full frame application. 我们希望将其迁移到Silverlight全帧应用程序。 However, there is no way we can go away in a corner and redo every web page in SL right off the bat. 但是,我们无法一a而就,无法立即重做SL中的每个网页。

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. 我想做的是在SL中构建应用程序的镶边(主页,仪表板,登录名,常用系统/配置屏幕,主菜单),并能够在主要内容SL框架中打开现有的.aspx页面。

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. 我以为SL4中的Webbrowser控件将是答案,但是显然,仅当您的应用程序用完浏览器时,该控件才起作用。

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? 似乎我将不得不创建某种类型的.aspx页面来承载.XAP并传递我希望其加载的页面?

How would you gurus approach this? 您的上师将如何处理?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在我的aspx页面和silverlight应用程序中共享会话变量吗? - Can I share session variables in my aspx pages and in the silverlight application? 如何从SilverLight应用程序在新的浏览器窗口中打开aspx页面? - How can I open an aspx page in a new browser window from a SilverLight Application? 我有一个混合(部分 ASP,部分 ASPX)Web 应用程序。 如果用户在 ASPX 端花费太长时间,他们将在 ASP 端注销。 我怎样才能解决这个问题? - I have a hybrid (part ASP, part ASPX) web app. If the user spends too long on the ASPX side, they get logged out on the ASP side. How can I fix this? 如何将silverlight集成到aspx中? - How to integrate silverlight into aspx? 在我的混合项目中,我无法创建视图包 - In my hybrid project i can not create a viewbag 如何将“用户”对象从aspx传递到silverlight 4 - How do I Pass a 'user' object from aspx to silverlight 4 如何将我的silverlight应用程序与SQL Server 2005连接 - How can I connect my silverlight application with SQL server 2005 如何使用SilverLight创建自己的对象类 - How can I create my own class of objects using SilverLight 如何在SilverLight中使用触发器调用方法创建元素? - How can I create elements with trigger invoke method in SilverLight? 从服务器上后面(aspx.cs)的asp.net代码如何确定客户端上是否安装了Silverlight? - From asp.net code behind (aspx.cs) on the server how can I determine if Silverlight is installed on the client?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM