How to integrate silverlight into aspx?

狂风中的少年 提交于 2019-12-25 00:51:52

问题


I have created a Silverlight application now I want to embed it into my aspx page. Is there any video tutorial for this, which explains how to integrate silverlight in aspx page?


回答1:


In your web project, make sure you've included a reference to the silverlight application so the .xap file will be in the clientbin folder.

Right-click on your web project and select Properties. Select the Silverlight Applications tab on the left. Click the Add... button and select your existing Silverlight project. Also, check the box that says, "Add a test page that references the control" and VS will include a new .ASPX page that will have the code to reference the Silverlight control.

Note: this assumes the silverlight project and the web project are in the same solution. I assume they are..




回答2:


Here is an example of how a chart control can be embedded in an aspx page: http://demos.telerik.com/aspnet-ajax/chart/examples/silverlight/defaultcs.aspx



来源:https://stackoverflow.com/questions/6099485/how-to-integrate-silverlight-into-aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!