How to make a C# HTML Source Grabber

Spazzy Jun 3, 2012

  1. Spazzy

    Spazzy Newbie
    0/47

    Joined:
    Oct 23, 2011
    Messages:
    11
    Likes Received:
    3
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Wilm
    Console:
    Xbox
    Today, we will be learning how to retrieve the HTML source of websites using C# functions. We will begin by creating a new C# windows forms application and naming it 'HTML SOURCE GRABBER'. On the form, add 1 text box, A webclient, 1 button, and 1 label. Name the button 'Get source' and name the label 'No address entered...'. Okay, lets begin the coding. Double-click the 'Get source' button and add this code:
    Coding explained: The coding above retrieves the HTML source code of the url you enter in the textbox. I hope this tutorial helped!
     
    • Like Like x 1

Share This Page

Close