screen scrapping aspnet pages

screen scrapping aspnet pages

  If you want to crawl pages using HttpWebRequest and HttpWebResponse, you need to POST the __VIEWSTATE, EVENTARGUMENT and EVENTTARGET
along with your Request. 
  If that page stores session or cookies you need to pass session cookies and Cookies along with the HttpWebRequest object.
You need to use Post Method.

 your post data will look like this

string postData = "__EVENTARGUMENT=" + value + "&_EVENTTARGET="+ targetValue+ "&__VIEWSTATE="+ViewState ;

You first use tools like fiddler to know how your broser post the data to .aspx pages then prepare your post string to post the data.



Android screen navigation example using Activity and IntentRemoving aspnet runtime from IISUpside Down computer screenAndroid Screen SleepHow to remove Screen protector from mobileHigh performance aspnet applicationaspnet 40 new featureslearn aspnetSessions In Aspnetaspnet development server failed to start listening on portAspnet Listbox Selectedindexchanged problems and solution


My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.

I'm Satalaj.