Getting data into silverlight on sharepoint l.jpg
This presentation is the property of its rightful owner.
Sponsored Links
1 / 16

Getting data into Silverlight on SharePoint PowerPoint PPT Presentation


  • 142 Views
  • Uploaded on
  • Presentation posted in: General

Getting data into Silverlight on SharePoint. Neil Iversen http://justaddcode.com/blog. The Plan. Silverlight is cool Getting Data is Hard The Options. Making the Case for Silverlight. Rich client side interactions Very useful graphical libraries Buzzword Compliant

Download Presentation

Getting data into Silverlight on SharePoint

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Getting data into silverlight on sharepoint l.jpg

Getting data into Silverlight on SharePoint

Neil Iversen

http://justaddcode.com/blog


The plan l.jpg

The Plan

  • Silverlight is cool

  • Getting Data is Hard

  • The Options


Making the case for silverlight l.jpg

Making the Case for Silverlight

  • Rich client side interactions

  • Very useful graphical libraries

  • Buzzword Compliant

  • You can play sweet games with it


The silverlight crash course l.jpg

The Silverlight Crash Course

  • Silverlight 1.0 – Boring

  • Silverlight 2.0

    • .NET in your browser

      • Subset of the .NET framework

  • Silverlight 3.0

    • More .NET in your Browser

    • More libraries


Silverlight crash course continued l.jpg

Silverlight Crash Course – Continued

  • XAML – Declarative markup language

    • WPF for the Web

  • Write some C#/VB for the code

  • Results in a .XAP

    • Load it up in your browser…and presto!


Making silverlight graphical l.jpg

Making Silverlight Graphical

  • Using Visifire Today


Demo making a graph in silverlight l.jpg

DEMO: Making a Graph in Silverlight


Boring l.jpg

Boring!

  • I want some data in there

  • Common Method

    • Web Service

  • We’re in SharePoint, lets look at that first


Connections in sharepoint l.jpg

Connections in SharePoint

  • Use Part to Part communication to provide a value

  • Place it in Silverlight using InitParams

    • HTMLish way to pass params to Silverlight


Demo passing sharepoint data to sl l.jpg

DEMO: Passing SharePoint data to SL


External data l.jpg

External Data

  • Finally, the Web Service example!

  • Options

    • Web Client

    • WCF Service

    • RIA Services (Additional Addon)


Demo the digg example l.jpg

DEMO: The Digg Example


Well that was easy l.jpg

Well that was easy

  • If only it was always like that!

  • Digg is special, it has a client policy xml file

    • Twitter doesn’t

  • Origin Policy

    • Limits you to calling things on the same server as YOUR XAP

    • Same Port and Everything

    • Silverlight respects Flash client policy files


Getting around origin l.jpg

Getting around Origin

  • Common Approaches

    • Proxy Web Service

      • Tunnel whatever request you want through a custom web service

      • Requires you to maintain another mapping layer

      • Hard to protect against rogue internet people

    • RIA Services

      • Very cool, lets you pass your domain objects around

      • Dynamically writes web service proxy code for you

      • Currently in Preview, not ‘Production’

      • Silverlight 3 Only

    • Trickery


Oooh i like trickery l.jpg

Oooh, I like trickery

  • Toolbox

    • We’ve got a control that’s running that can hit web services and databases

    • Silverlight can execute javascript and has access to the web page

  • The Plan

    • Make our control do the dirty work and dump it into the DOM

    • Silverlight parses and interprets the results


Demo trickery l.jpg

DEMO: Trickery


  • Login