Acess silverlight source

Last post 08-18-2009 8:06 AM by cninjas. 1 replies.

Sort Posts:

  • Acess silverlight source

    08-14-2009, 4:31 PM
    • Member
      26 point Member
    • xtinction84
    • Member since 04-06-2009, 12:50 AM
    • Posts 59

    Hi there!

    My question is very simple: I have this

        <div>
            <asp:Silverlight ID="XamlSilverlight" runat="server" Windowless="true"
                Source="~/ClientBin/SilverlightScatterPlot.xap" MinimumVersion="2.0.31005.0"
                Width="600" Height="600" />
        </div>


    And i need to change the source of silverlight in server-side, so i need to acess the control of silverlight so:

     ContentPlaceHolder content = new ContentPlaceHolder();
                content = (ContentPlaceHolder)Page.Master.FindControl("MainContent");
    
    (content.FindControl("XamlSilverlightDiagnostic") as DontKnow).Source = "~/ClientBin/SilverlightScatterPlot.xap"





    How can i do to change the source of my silvellight control, in my Page.aspx

    thanks
  • Re: Acess silverlight source

    08-18-2009, 8:06 AM
    Answer
    • Participant
      1,810 point Participant
    • cninjas
    • Member since 05-29-2007, 3:29 AM
    • Posts 317

     hi

    can it be two page with different source for the silverlight object? in that case you can do the check redirect the page acordingly.

    or just append it with the querystring and map it to the SIlverlight control in aspx page. is that possible.

    sorry if iam worng.

    Thanks,

Page 1 of 1 (2 items)