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. Anyone have a clue?

Anyone have a clue?

Scheduled Pinned Locked Moved C#
csharphelpquestion
3 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
    Renjith Ramachandran
    wrote on last edited by
    #1

    I have an issue in my project. I am dowloading a webpage and reading line by line of the site. The output I get is the full webpage displaying the information on the site and also the tags. Is there any possibilities to write some code to ignore the tags so that only the interesting bits of the page will be displayed? I am using the .NET compact framework and need this in C#. Anyone have a clue? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.

    M G 2 Replies Last reply
    0
    • R Renjith Ramachandran

      I have an issue in my project. I am dowloading a webpage and reading line by line of the site. The output I get is the full webpage displaying the information on the site and also the tags. Is there any possibilities to write some code to ignore the tags so that only the interesting bits of the page will be displayed? I am using the .NET compact framework and need this in C#. Anyone have a clue? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.

      M Offline
      M Offline
      Mohamad Al Husseiny
      wrote on last edited by
      #2

      you need to parse the page source and extract the info you want

      1 Reply Last reply
      0
      • R Renjith Ramachandran

        I have an issue in my project. I am dowloading a webpage and reading line by line of the site. The output I get is the full webpage displaying the information on the site and also the tags. Is there any possibilities to write some code to ignore the tags so that only the interesting bits of the page will be displayed? I am using the .NET compact framework and need this in C#. Anyone have a clue? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        One way of efficiently extracting data like that from a string is to use a regular expression. Have a look att the RegEx class. You say that you read line by line? The html page is not line oriented at all, so there is no reason to read it line by line. Read it all into a string, then extract what you want from that string. --- b { font-weight: normal; }

        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