locked
Passing data from the server RRS feed

  • Question

  • I have a silverlight control being uploaded by a custom WebControl at run time (in the RenderContents writing an <object> tag). I need to pass data to this Silverlight control from my WebControl (on the server side). I have exposed some methods/functions with [ScriptableMember] in the Silverlight control and that works fine when the JavaScript is registered in the WebControl OnLoad event. the problem is that this data is dynamic and needs to be redered in the Silverlight control. I have tried several things; but has focused mostly on "Page.ClientScript.RegisterStartupScript" which has not worked. I guess that is suppoused to work when the page starts? not sure. 

    To summarize I need to pass data from the server to my Silverlight control at run time because this data changes all the time.

    Thanks.

    Friday, February 10, 2012 1:50 PM

Answers

All replies