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. HTMLdocument and Webclient/Webbrowser

HTMLdocument and Webclient/Webbrowser

Scheduled Pinned Locked Moved C#
questionhtml
5 Posts 3 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.
  • R Offline
    R Offline
    ranzask
    wrote on last edited by
    #1

    Hi all, i have a URL and i want to get the html from that location. then i want to be able to get the BODY part and look for something there.. if posible (using some parsers) i want to get the links there and other stuff too. but how do i connect from HTMLdocument and downloading the url? Thanks alot, Ran.Z. R.Z

    E R 2 Replies Last reply
    0
    • R ranzask

      Hi all, i have a URL and i want to get the html from that location. then i want to be able to get the BODY part and look for something there.. if posible (using some parsers) i want to get the links there and other stuff too. but how do i connect from HTMLdocument and downloading the url? Thanks alot, Ran.Z. R.Z

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      The only parser that I've come across built into the framework is the System.Windows.Forms.WebBrowser control where you can navigate to a page and then use the WebBrowser.Document property to retrieve the HTMLDocument. If this is OTT then the only other solution would be to write a simple parser, maybe use some Regular Expressions but at least the WebBrowser will take into consideration some badly formatted HTML. If only everyone wrote in XHTML then we could use the XmlDocument class... :sigh: Ed

      1 Reply Last reply
      0
      • R ranzask

        Hi all, i have a URL and i want to get the html from that location. then i want to be able to get the BODY part and look for something there.. if posible (using some parsers) i want to get the links there and other stuff too. but how do i connect from HTMLdocument and downloading the url? Thanks alot, Ran.Z. R.Z

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        This[^] article may help you. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        R 1 Reply Last reply
        0
        • R Ravi Bhavnani

          This[^] article may help you. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

          R Offline
          R Offline
          ranzask
          wrote on last edited by
          #4

          thanks alot. haven't tried it yet but it may do the job. also the message posted before that. thank you both :-D Ran.Z. R.Z

          R 1 Reply Last reply
          0
          • R ranzask

            thanks alot. haven't tried it yet but it may do the job. also the message posted before that. thank you both :-D Ran.Z. R.Z

            R Offline
            R Offline
            Ravi Bhavnani
            wrote on last edited by
            #5

            Also see this[^] article which is a framework for retrieving information from the web, which seems like what you appear to be doing. (Its MFC analog can be found here[^] and several applications of this class can be found here[^].) /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

            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