将 Silverlight 视频播放器嵌入到 Asp.net Web 应用程序
如何将自定义 Silverlight 视频播放器应用程序嵌入到 Asp.net Web 应用程序中?
我试图获取更多信息。关于这一点, 这是第一次在Asp.net上处理silverlight所以 我在 silverlight.com 中搜索它
我已经是 stackoverflow 的新手 所以,无论如何,我不太了解其规则
,谢谢大家,这个答案确实有帮助。 :)
How can I embed my custom Silverlight Video Player application into an Asp.net web application?
I Tried to get more info. about this,
it is the first time to deal with silverlight on Asp.net so
i get searched for it in silverlight.com
i'm already new to stackoverflow
so, i donno well in its rules
anyway thanks Guys, this answers really help. :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的问题非常广泛且含糊不清,但我将尝试提供我认为您正在寻找的答案:
假设您已经有一个 .xap 文件(即通过在 Visual Studio 2010 中构建 Silverlight 应用程序生成的文件) ),您可以简单地将其嵌入到任何 HTML 或 ASPX 页面中,方法是使用当您使用 Web 项目创建新的 Silverlight 应用程序时 Visual Studio 自动生成的代码:
我通过转到以下位置在 VS2010 中自动生成了此代码文件 -> 新项目 -> Silverlight 应用程序,选中“在新网站中托管 Silverlight 应用程序”框,然后打开在我的 SilverLightApllication1.Web 项目中创建的 SilverlightApplication1TestPage.aspx 文件。
Your question is very broad and ambiguous, but I will attempt to provide an answer to what I think you're looking for:
Assuming you already have an .xap file (that is, the file produced by building a Silverlight Application in Visual Studio 2010), you can simply embed it in any HTML or ASPX page by using the code that Visual Studio automatically generates for you when you create a new Silverlight Application with a Web project:
I had this code automatically generated in VS2010 by going to File->New Project->Silverlight Application and checking the box for "Host the Silverlight Application in a new Web site" and opening up the SilverlightApplication1TestPage.aspx file that was created in my SilverLightApllication1.Web project.
您可以在与 Silverlight 项目相同的解决方案中创建一个 ASP.NET 项目,然后在 .aspx 页面中添加一个对象标记,该标记引用作为 Silverlight 项目输出的 XAP 文件。
You can create an ASP.NET project in the same solution as your Silverlight project, and then add an object tag in your .aspx page that references the XAP file which is the output of the Silverlight project.