Skip to main content

Microsoft Silverlight

Unanswered Question Passing objects between Silverlight and ASP.netRSS Feed

(0)

jerrykur
jerrykur

Member

Member

2 points

6 Posts

Passing objects between Silverlight and ASP.net

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
pbromberg

Contributor

Contributor

2114 points

368 Posts

Re: Passing objects between Silverlight and ASP.net

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.

 

Bhagirath Patadia
Bhagirat...

Member

Member

182 points

58 Posts

Re: Re: Passing objects between Silverlight and ASP.net

Hi,

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

If this matches your answer then MARK IT AS ANSWER
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities