Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint

You're reading from   Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint Build an engaging SharePoint site with Visual Studio, Silverlight, PowerShell and Windows 7 Phone with this book and e-book

Arrow left icon
Product type Paperback
Published in Feb 2012
Publisher Packt
ISBN-13 9781849686808
Length 392 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (15) Chapters Close

Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint
Credits
About the Contributors
1. www.PacktPub.com
2. Preface
1. Understanding SharePoint Development Choices 2. Building an Engaging Community Site FREE CHAPTER 3. PowerShell Scripting Methods and Creating Custom Commands 4. Integrating Silverlight 4 with SharePoint 2010 5. Interacting with Rich Media and Animations 6. List Definitions and Content Types 7. Workflows 8. Introduction to Programming Windows Phone 7 with the SharePoint Client Services 9. Building SharePoint Pages for Windows Phone 7 10. Building a Windows Phone 7 Dashboard Application with SharePoint Data

Using WebClient to get data from the Web


As was stated in the introduction to this chapter, we are going to build a really simple RSS reader for Windows Phone 7. We are going to keep everything really simple. What that means is that we are going to focus on the pieces of code that actually do something.

This is what we are going to do:

  • Create our base project

  • Add a text block to display the WebClient results

  • Create a WebClient

  • Use the WebClient to request the contents of our SharePoint home page

  • Display the raw HTML that is returned in the text block on the page

First, a quick word about WebClient. WebClient isn't the most robust method of making requests over a network, but it's really simple and works for simple cases, such as the one we are working with.

Creating the base project

We can start by creating our base project. This RSS reader will use the Visual Studio Silverlight for Windows Phone Windows Phone Application template. Carry out the following steps to start the project:

  1. 1...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image