简体   繁体   English

如何在ASP网页中添加和使用Silverlight控件以及其他ASP.NET控件

[英]How to add and use silverlight controls in asp net webpage along with other asp.net controls

Using Visual Studio 2012 I tried to follow the steps given in the link http://msdn.microsoft.com/en-us/magazine/cc135987.aspx 使用Visual Studio 2012,我尝试按照链接http://msdn.microsoft.com/zh-cn/magazine/cc135987.aspx中给出的步骤进行操作

for the same I downloaded Silverlight.js file from http://archive.msdn.microsoft.com/silverlightjs 同样,我从http://archive.msdn.microsoft.com/silverlightjs下载了Silverlight.js文件

but in the very first example of growing and shrinking green sphere I was unable to see expected output. 但是在第一个关于绿色领域不断扩大和缩小的例子中,我看不到预期的产出。 I see a blank white page. 我看到空白页。 Is something I am missing. 是我想念的东西。 I tested my silverlight installation, its perfectly running sample silverlight application in browser, so no issue in silverlight version etc. Because the article posted on the link is too old. 我测试了我的silverlight安装,它在浏览器中运行得很好的示例Silverlight应用程序,因此在Silverlight版本等中没有问题。因为链接上发布的文章太旧了。 So there may be some updates or change in way of using. 因此,使用方式可能会有所更新或更改。 Please let me know where am I going wrong. 请让我知道我要去哪里错了。

You are right - that is a very old article, and the method of embedding the Silverlight control in the ASPX page changed at about v3 of Silverlight. 您是对的-这是一篇非常古老的文章,并且在Silverlight的v3左右更改了将Silverlight控件嵌入ASPX页面的方法。

I suggest you watch this instruction video: Adding Silverlight to a Web Page . 我建议您观看此教学视频: 将Silverlight添加到Web页面 Additionally this page is also a good launch page for learning more about Silverlight. 此外, 此页面还是一个很好的启动页面,可用于了解有关Silverlight的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM