O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interacting with the Web

In Chapter 6, you saw how you can use the WebClient class to download a file from the Web. This technique allows you to grab a resource or even a Silverlight assembly at the exact point in time when an application needs it.

The WebClient isn't just for downloading binary files. It also opens some possibilities for accessing HTML pages and web services. And using its bigger brother, WebRequest, you gain the ability to post values to a web page. In the following sections, you'll see a variety of approaches that use these classes to pull information from the Web. But before you begin, you need to reconsider the security limitations that Silverlight applies to any code that uses HTTP.

Note The networking examples in this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required