Currently, I have a connected web part that consumes a SharePoint list and uses the data to add locations to a Google Map control.

What I'd like to do is use the Bing Maps Silverlight control and use the same data to render pushpins on the map. I can create an unconnected web part and use the SharePoint web services to access the list data, loop through the rows and add the pins to the map. In terms of configuration this will mean the user will need to enter the list name (or Guid) in the properties of the web part, whereas before they could select from the available lists on the site, this seems like a step in the wrong direction.

So, is there a way to use the data that is provided by the connected web part and make it available to the Silverlight control?

Cheers, Stuart.


Can you modify your existing Google web part to produce the appropriate javascript code for your Silverlight web part? You can see an example of the Bing javascript produced through a data view web part in my maps series.

|improve this answer|||||
  • I didn't modify my existing web part but I've managed to use JavaScript and the HTML Bridge in Silverlight to add pushpins to the map. – Stuart Whiteford Mar 15 '10 at 18:37
  • Glad that you found the answer! – Tom Resing Mar 24 '10 at 19:48

The list view web part is just a connection consumer and not a provider. You could sub-class the ListViewWebPart and add a custom connection provider to it with the current list id.

|improve this answer|||||
  • OK, sounds like a good starting point, but how would I get the list data from the web part into the Silverlight control? – Stuart Whiteford Mar 12 '10 at 7:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.