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. Using C# to get web page information

Using C# to get web page information

Scheduled Pinned Locked Moved C#
2 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.
  • T Offline
    T Offline
    tcombs07
    wrote on last edited by
    #1

    Hey guys I am hoping you can help with this. I am writting a windows service that monitors servers and reports back to an asp page which collects the data and displays it in a grid which notifies us if a server is up or down. Recently we started writting an asp page that holds certain configuration data, one being the web url(which is used for check in). And my question for you guys is how do I tell my service to check that asp page every so often to see if the web url has changed, and if it has changed pull the new url and use that for the check in. I hope that made sense. I look forward to hearing what you guys have to say. And thanks in adavance to everyone that helps Travis

    N 1 Reply Last reply
    0
    • T tcombs07

      Hey guys I am hoping you can help with this. I am writting a windows service that monitors servers and reports back to an asp page which collects the data and displays it in a grid which notifies us if a server is up or down. Recently we started writting an asp page that holds certain configuration data, one being the web url(which is used for check in). And my question for you guys is how do I tell my service to check that asp page every so often to see if the web url has changed, and if it has changed pull the new url and use that for the check in. I hope that made sense. I look forward to hearing what you guys have to say. And thanks in adavance to everyone that helps Travis

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      tcombs07 wrote:

      And my question for you guys is how do I tell my service to check that asp page every so often to see if the web url has changed,

      You shall use WebRequest[^] and WebResponse[^] classes. Using these, you can send request to the remote URI and get the status. So if you are getting a 404 message, you need to pull new URL and resend the request to there.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      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