Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Passing objects between Silverlight and ASP.net
2 replies. Latest Post by Bhagirath Patadia on November 26, 2009.
(0)
jerrykur
Member
2 points
6 Posts
11-25-2009 4:44 PM |
Hi,
I want to add a Silverlight control that will perform drag and drop operations which changes data that is stored in a collection of objects. In the current code these objects are buffered in the Session and not saved until the user press the save button. I would like to preserve the transient nature of the objects and pass them to and from my new Silverlight control. Any suggestions on the best way to accomplish this?
An example of the type of data I want to pass around would be list<myobj> mydata where myobj could be a collection or a object.
jerry
pbromberg
Contributor
2114 points
368 Posts
11-25-2009 5:25 PM |
One way or another, your collection of objects is going to need to be serialized and sent over the wire back to the server from the Silverlight client. A WCF Service is most likely the simplest candidate for this, as the serialization framework for doing this is built in.
Bhagirat...
182 points
58 Posts
11-26-2009 12:09 AM |
According to your requirement, the service oriented architecture seems to be best suiting.
Create a WCF or ASMX service and access it from Silverligh App