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 get html source code of WebPage?

How get html source code of WebPage?

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.
  • A Offline
    A Offline
    aleXXXka
    wrote on last edited by
    #1

    I am using axWebBrowser. How can i get html code of page that in browser now?

    L 1 Reply Last reply
    0
    • A aleXXXka

      I am using axWebBrowser. How can i get html code of page that in browser now?

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, you should have a look at the WebBrowser class, and its Document property. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


      modified on Sunday, June 12, 2011 8:25 AM

      A 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, you should have a look at the WebBrowser class, and its Document property. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


        modified on Sunday, June 12, 2011 8:25 AM

        A Offline
        A Offline
        aleXXXka
        wrote on last edited by
        #3

        What can i do with this property? Hw can i get source of page in browser?:(

        V 1 Reply Last reply
        0
        • A aleXXXka

          What can i do with this property? Hw can i get source of page in browser?:(

          V Offline
          V Offline
          vaghelabhavesh
          wrote on last edited by
          #4

          Try DocumentText[^] property of WebBrowser class. It will give you the HTML for the current page displayed in webbrowser.

          A 1 Reply Last reply
          0
          • V vaghelabhavesh

            Try DocumentText[^] property of WebBrowser class. It will give you the HTML for the current page displayed in webbrowser.

            A Offline
            A Offline
            aleXXXka
            wrote on last edited by
            #5

            axWebBrowser has not DocumentText property. What can i do with Document property?

            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