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. System.Web.UI.Page, get page object from URI

System.Web.UI.Page, get page object from URI

Scheduled Pinned Locked Moved C#
designtutorial
5 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.
  • M Offline
    M Offline
    Mogyi
    wrote on last edited by
    #1

    Hi, If anybody knows how to load up a Page object form a web address :omg: or has any idea about what could be done, please drop a message, even if you don't whant to... Thx

    G 1 Reply Last reply
    0
    • M Mogyi

      Hi, If anybody knows how to load up a Page object form a web address :omg: or has any idea about what could be done, please drop a message, even if you don't whant to... Thx

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

      What you are asking for is nothing that is normally done. What is it that you are trying to accomplish?

      --- single minded; short sighted; long gone;

      M 1 Reply Last reply
      0
      • G Guffa

        What you are asking for is nothing that is normally done. What is it that you are trying to accomplish?

        --- single minded; short sighted; long gone;

        M Offline
        M Offline
        Mogyi
        wrote on last edited by
        #3

        I have to extaract data by crawling true a website. I have to somehow get a Page class so I can access Page.Controls collection. If I'm right, I have a hunch, with HttpWebRwsponse this could be done... still, I din't found a way yet...:((

        G 1 Reply Last reply
        0
        • M Mogyi

          I have to extaract data by crawling true a website. I have to somehow get a Page class so I can access Page.Controls collection. If I'm right, I have a hunch, with HttpWebRwsponse this could be done... still, I din't found a way yet...:((

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

          You can only possibly create a Page object for a page if the page is in the same web application. If it's not, you can't. The HttpWebRequest gets a response from which you can get the html code for the page as a string. The code contains only the html code that is generated, but no information about what server controls was used to generate the code, so you can't recreate any server controls from the response. You have to parse the html code to get the data from the page.

          --- single minded; short sighted; long gone;

          M 1 Reply Last reply
          0
          • G Guffa

            You can only possibly create a Page object for a page if the page is in the same web application. If it's not, you can't. The HttpWebRequest gets a response from which you can get the html code for the page as a string. The code contains only the html code that is generated, but no information about what server controls was used to generate the code, so you can't recreate any server controls from the response. You have to parse the html code to get the data from the page.

            --- single minded; short sighted; long gone;

            M Offline
            M Offline
            Mogyi
            wrote on last edited by
            #5

            Thx for the response, it makes total sens... I hope I can make this somehow work :^), this tool will be used to trak down bugs by gathering CSS data... Regards, Mogyi

            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