Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Silverlight Integration

  1. #1
    sam.bengtson is offline Member
    Join Date
    Jan 2011
    Posts
    64

    Default Silverlight Integration

    Hey guys,

    I'm trying to integrate a Silverlight app into my home page and i'm not having much luck. I obviously have Silverlight installed on my computer but when I navigate to the page, I just see a blank screen. Has anybody successfully done this before? Any help would be great Here is what I have in my code:

    <form id="Form1" runat="server">
    <div id="silverlightControlHost">
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
    <param name="source" value="X:/Backup/Sam/slide_silverlight/featuredProd_Silverlight/Bin/Debug/SilverlightApplication2.xap"/>
    <param name="onError" value="onSilverlightError" />
    <param name="background" value="white" />
    <param name="minRuntimeVersion" value="4.0.50826.0" />
    <param name="autoUpgrade" value="true" />

    <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
    <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>

    </a>
    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;bord er:0px"></iframe></div>

    </form>

  2. #2
    Muckman is offline Junior Member
    Join Date
    Jun 2010
    Posts
    14

    Default

    Hi,

    I assume the problem is, that you have to use relative path to the .XAP otherwise the client wont find it.

    <param name="source" value="X:/Backup/Sam/slide_silverlight/featuredProd_Silverlight/Bin/Debug/SilverlightApplication2.xap"/>