I'm relatively new to Silverlight development, and I'm trying to figure out how to get data from the silverlight control that I made.
I have a Silverlight control that collects a bunch of graphical data points. The Silverlight control is embedded in the asp.net web form application. The page that displays the control also performs other data-dependent functions, and when the user clicks the button, I need to perform some data manipulation (both the web form data and the data contained in the Silverlight control), and then save the data using 1 call to the database.
My question is, how do I retrieve data from a Silverlight control from my web form in order to be able to combine data for saving?
My initial thought was to make the data in the Silverlight control accessible through Javascript, and then click on the button, save the Silverlight control data to some html control, and then allow the regular message as a web form and read the data server. Is there a better way to do this as it feels a little dirty.
Note. I am using .NET 3.5 and Silverlight 3.0.
source
share