Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to Save Web Page, complete in C#

How to Save Web Page, complete in C#

Scheduled Pinned Locked Moved C#
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dataminers
    wrote on last edited by
    #1

    I try following code; WebClient wClient = new WebClient(); wClient.DownloadFile("http://www.google.com", "C:\\google.html"); But those code do not download resource file (like css, image...). How can I download COMPLETE web page using with C#.NET Best Regards...

    F 1 Reply Last reply
    0
    • D dataminers

      I try following code; WebClient wClient = new WebClient(); wClient.DownloadFile("http://www.google.com", "C:\\google.html"); But those code do not download resource file (like css, image...). How can I download COMPLETE web page using with C#.NET Best Regards...

      F Offline
      F Offline
      fabrice leal
      wrote on last edited by
      #2

      Download the html page, use regular expressions or something similar to find references to images or css on the html,and download them as well... :^)

      D 1 Reply Last reply
      0
      • F fabrice leal

        Download the html page, use regular expressions or something similar to find references to images or css on the html,and download them as well... :^)

        D Offline
        D Offline
        dataminers
        wrote on last edited by
        #3

        Its really hard way. I download http://www.google.com/ And I read source, find <img src=images/hp0.gif width=158 height=78 alt="Google"> Than I download http://www.google.com/images/hp0.gif

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups