如何将Silverlight 3.0导航应用程序集成到ASP.Net网站页面中 [英] How do I Integrate a Silverlight 3.0 Navigation application into ASP.Net Website pages

查看:64
本文介绍了如何将Silverlight 3.0导航应用程序集成到ASP.Net网站页面中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



案例1:

我有一个纯银光3.0 导航应用程序,它由MainPage 左导航(树视图)内容框架上的MainPage.xaml和导航页面组成. b>在其右侧相邻处,其功能是在选择左侧导航"(树视图)节点时,在内容框中显示相应的银色灯光导航页面.所有功能都在".xaml.cs"文件中处理.

作为Silverlight导航应用程序,它运行良好,现在,我正在尝试将整个功能集成到ASP.Net网站中.我的网站有一个母版页,并且在母版页中有一个标题标题和标题标题下面的一个 Content Place Holder .单击 default.aspx 中的按钮时,它应重定向到 Silver Light导航应用程序,并且Silver Light导航应用程序应显示在母版页的内容占位符中.


情况2:

在同一个Silverlight 3.0导航应用程序中,我可以在 SilverlightApplication1.Web 中放入母版页,并将Silverlight导航集成到新的aspx页面中. SilverlightApplication1.Web?

对于上述情况,我到处搜索Google,但并没有发现任何明显的内容.

任何人都可以为我解释这两种情况的一种好方法,这样我就可以从中脱颖而出.

谢谢&问候
Sri

Hi,

Case 1:

I have a pure Silver light 3.0 navigation application that consists a MainPage.xaml and Navigation Pages, on MainPage Left Navigation (Tree View) and a Content Frame to its right adjacent are there, The functionality of this is to show the corresponding silver light navigation page in the Content Frame on selection of Left Navigation (Tree View) nodes. all the functionality is handled in ".xaml.cs" files.

It is good running as Silver light navigation Application, and now I''m trying to integrate the whole functionality into a ASP.Net Website. My website has a Master Page and in the master page a Title Header is there and a Content Place Holder underneath Title Header. On clicking a button in the default.aspx, it should redirect to the Silver Light Navigation application and Silver light navigation app should be displayed in the Content Place Holder of Master Page.


Case 2:

In the same Silverlight 3.0 navigation application can I put a Master Page in the SilverlightApplication1.Web and integrate the Silverlight Navigation into a new aspx page of SilverlightApplication1.Web?

For the above cases, I have googled all over and didn''t found any stuff at clarity.

Can anybody please explain me a good approach for either of the cases, so that I can come out of this.

Thanks & Regards
Sri

推荐答案

您好,Sri,恐怕您的查询不够清楚.

对于案例1,您可以简单地从default.aspx重定向到没有包含Silverlight应用程序的母版页的ASPX页.如果需要,您的Silverlight可以具有一个按钮或链接,可让您返回到default.aspx.

对于案例2.是的,您可以将Silverlight应用程序放入新的ASPX页面.

您可能想重新阅读Silverlight对象标记(或ASP:Silverlight标记)的实现,因为您似乎对Siverlight应用程序在网页上的显示方式不太了解.

PS:Silverlight应用程序不需要托管在ASPX页面中(适用于HTML),它也可以使用JavaScript或通过页面上的JavaScript进行控制.
Hi Sri, I''m afraid your query is not clear enough.

For Case 1 you could simply redirect from default.aspx to an ASPX page with no master page that contains your Silverlight application. Your Silverlight can have a button or link that gets you back to the default.aspx if required.

For Case 2. Yes, you can put your Silverlight application into a new ASPX page.

You may want to re-read on the implementation of Silverlight object tag (or ASP:Silverlight tag) as you seem to don''t have a good understanding on how a Siverlight application is displayed on a web page.

PS: A Silverlight application does not need to be hosted in an ASPX page (works with HTML), and it can also work with JavaScript or be controlled via JavaScript on a page.


这篇关于如何将Silverlight 3.0导航应用程序集成到ASP.Net网站页面中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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