Code Examples
  Home arrow Code Examples arrow Page 3 - Download a Web Page using the WebClient
Iron Speed
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
CODE EXAMPLES

Download a Web Page using the WebClient
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 62
    2006-09-13

    Table of Contents:
  • Download a Web Page using the WebClient
  • Creating a Windows project to use the WebClient Class
  • Know your options
  • Create a form using the WebClient Control

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!

    Download a Web Page using the WebClient - Know your options


    (Page 3 of 4 )

     

    Visual Basic 2005 Express Edition has all the nice features of the full Visual Studio 2005; that includes intellisense. You should make use of this feature to code so that you will understand the various possibilities as shown in the next picture. As you can see, the number of overloaded options you have, and in fact most of what you can code, is spelled out and laid out neatly.

    Click on Project and from the drop-down click on the ExploreWebClient Properties... hyperlink to open the following window, where you can set the project to run the page you choose from among other forms in this application, as shown by the drop-down, Startup Object.

    When you run the form, you will see the form displayed as shown. The textbox shows the source of the blog and the one below it shows the web page.

    View from the Object Browser

    The Object Browser provides access to the tree structure of the various Namespaces and classes used in the project. The next picture shows a part of the class WebClient which has a large number of methods and some properties. The OpenRead() method is highlighted.

    More Code Examples Articles
    More By Jayaram Krishnaswamy


       · You want to look at a web page in a windows application - the web client is a good...
     

    CODE EXAMPLES ARTICLES

    - Handling Animations and Bitmaps Using GDI+ f...
    - Download a Web Page using the WebClient
    - Creating a Chart using Data from a Database ...
    - The Basics of Charting with the MS Chart Con...
    - Searching Body Text with textRange: Enter th...
    - Searching Body Text with textRange: Building...
    - Searching Body Text with textRange, part 1: ...
    - First Steps in Programming
    - Programming in C
    - Quick Introduction to ASF,ASX, and Networkin...
    - SatView: Pointer Perfect, Part 2: Constructi...
    - SatView: Pointer Perfect, Part 1
    - Style Case Studies: Construction Unions
    - Creating an Engine for Games for Windows
    - Style Case Studies: Generic Callbacks

    Iron Speed




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway