如何在asp.net中使用Silverlight .xap文件 [英] How to use silverlight .xap file in asp.net

查看:72
本文介绍了如何在asp.net中使用Silverlight .xap文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net中使用silverlight .xap文件

How to use silverlight .xap file in asp.net

推荐答案

您可以使用Javascript或HTML来执行此操作-请参见
You can use either Javascript or Html to do this - see Integrating Silverlight with a Web Page[^].


通过Visual Studio 2008或更高版本创建Silverlight应用程序时,它将在您的Silverlight应用程序解决方案内自动创建一个托管ASP.NET网站项目,该网站包含一些javascript文件和2个测试页(YourApplicationNameTestPage.html和YourApplicationNameTestPage. aspx)(托管Silverlight.XAP文件),则可以从这些文件复制并粘贴托管部分,还需要将javascript文件复制到您的项目中.


如果解决方案可以解决您的问题,则将其标记为答案,这将帮助其他人轻松找到它.
When you create a Silverlight application through Visual Studio 2008 or more, it automatically creates a hosting ASP.NET website project within your solution of your silverlight application, the website contains some javascript files, and 2 test pages (YourApplicationNameTestPage.html and YourApplicationNameTestPage.aspx), which are hosting your Silverlight.XAP file, you can copy and paste the hosting part from those files, You will also require to copy the javascript files in to your project.


mark as answer if the solution solves your problem, it will help other to find it easily.


这篇关于如何在asp.net中使用Silverlight .xap文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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