How do I add a Silverlight application to my web page?

I created a website. How do I add a Silverlight application to it?

0


a source to share


2 answers


To add silverlight app to your page using html follow the steps below here . With a quick google search you can find how to embed Silverlight in asp, asp.net, etc.



+1


a source


Visual Studio automatically generates this code in the html page using the silverlight app




      

<div id="silverlightControlHost">
    <object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%">
        <param name="source" value="SilverlightApplication1.xap"/>
        <param name="onerror" value="onSilverlightError" />
        <param name="background" value="white" />
        <param name="minRuntimeVersion" value="2.0.31005.0" />
        <param name="autoUpgrade" value="true" />
        <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
            <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
        </a>
    </object>
    <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
</div>

      











code>
0


a source







All Articles