Chapter 14. Client-side Programming in Silverlight

WHAT YOU WILL LEARN IN THIS CHAPTER

  • Reading data from SharePoint using Silverlight, CAML, and LINQ

  • Progammatically creating, updating, and deleting list items

  • Modifying the configuration of lists and libraries

  • Managing the files and folders in your site

  • Modifying the Quick Launch and Top Navigation bars

Note

You can do the activities in this chapter with either JavaScript or Silverlight, with the exception of querying the SharePoint Client Object Model using LINQ to Objects. LINQ is only supported in Silverlight via LINQ to Objects. LINQ to SharePoint is only supported with the Server Object Model.

WHY SILVERLIGHT?

Silverlight gives you the ability to build applications rich with functionality and usability far beyond what is possible in JavaScript alone. With Silverlight, you can create C# and VB.Net applications that run in the browser as part of your SharePoint site. Like JavaScript, Silverlight has its own libraries for accessing SharePoint via the Client Object Model. Whether you are using JavaScript or Silverlight, they both communicate with SharePoint via the client.svc web service. The URL for this web service is located at http://yoursiteurl_vti_bin/client.svc where yoursiteurl is the URL of your SharePoint site.

One of the advantages of the Client Object Model is that you can supplement the functionality of the sandbox solutions in SharePoint. In some environments, developers do not need or are restricted from using certain, possibly-unsafe ...

Get Beginning SharePoint® Designer 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.