将 Silverlight 集成到 aspx 页面中

发布于 2024-08-10 17:45:59 字数 93 浏览 2 评论 0原文

我们如何将 silverlight 项目添加到 aspx 页面中。我在 silverlight 中创建了一个数字时钟项目。但我不知道如何与aspx页面集成。 提前致谢..

How we can add the silverlight project into a aspx page. I had created one digital clock project in silverlight. But i don't know how to integrate with the aspx page.
Thanks in advance..

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

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

发布评论

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

评论(1

独﹏钓一江月 2024-08-17 17:45:59

需要明确的是:无需使用 .Net 来托管 silverlight。

它是一个浏览器插件,您可以使用 html 对象标签来托管它。以下是您需要的所有信息:

如何:使用 HTML 将 Silverlight 添加到网页

另外,这里有一个简单的示例:

<object width="300" height="300"
    data="data:application/x-silverlight-2," 
    type="application/x-silverlight-2" >
    <param name="source" value="SilverlightApplication1.xap"/>
</object>

如果您使用的是 Asp.Net,则有一个项目包含用于托管 silverlight 对象的示例服务器控件。您可以在此处获取:Silverlight 示例的 ASP.NET 服务器控件

Just to be clear: There is no need to use .Net to host silverlight.

It is a browser plugin and you use the html object tag to host it. Here is all the information you need:

How to: Add Silverlight to a Web Page by Using HTML

Also, here is a quick example:

<object width="300" height="300"
    data="data:application/x-silverlight-2," 
    type="application/x-silverlight-2" >
    <param name="source" value="SilverlightApplication1.xap"/>
</object>

If you are using Asp.Net, There is a project that contains sample server controls for hosting silverlight objects. You can get it here: ASP.NET Server Controls for Silverlight Samples

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