ASP:Silverlight的

use*_*831 -4 silverlight-3.0

使用时

<asp:Silverlight ID="Xaml1" runat="server"/>
Run Code Online (Sandbox Code Playgroud)

发生错误.我们能做什么?

Dav*_*vid 7

ASP.NET中不再存在该控件(请参阅Silverlight 3发行说明).您现在在页面中包含对象标记.如果您不知道语法,则只需创建一个新的Silverlight项目,然后从模板中复制它.

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/MySilverlightApplication.xap"/>         
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object>
Run Code Online (Sandbox Code Playgroud)

在source属性中指定xap文件.