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