将Silverlight集成到aspx页面中 [英] Integrating Silverlight into aspx page

查看:71
本文介绍了将Silverlight集成到aspx页面中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将银光代码集成到aspx页面中,我还有两个xap文件,银光代码

How can i integrating silver light code into aspx page and also i have two xap file in silver light code

推荐答案

嘿,请参阅下面:

只是要明确:没有必要使用.Net来托管silverlight。



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



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



此外,这是一个简单的例子:



HEY REFER BELOW:
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>



如果您使用的是Asp.Net,则有一个项目包含用于托管silverlight对象的示例服务器控件。你可以在这里得到它:

ASP.NET服务器控件Silverlight示例


这篇关于将Silverlight集成到aspx页面中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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