troubleshooting Question

Calling external aspx page and trigger its __doPostBack event automatically

Avatar of miyahira
miyahiraFlag for Peru asked on
ASP.NET
1 Comment1 Solution1015 ViewsLast Modified:
Hello,

There is some public aspx web application that shows about 80,000 records in a datagrid, using paging functions. The datagrid shows about 50 records per page.

The thing is that we need to download the whole 80,000 records. Obviously, any guy could load the aspx page in a browser and, during two or three days, download the 80,000 records loading every datagrid page by mouse clicking.

We'd like to avoid that job, creating a program that has to:

- Load the aspx page (http://www.thatsite/apps/ds027/TheList.aspx)

- Call the javascript function __doPostBack(eventTarget, eventArgument) with these parameters:
  __doPostBack('ctl100$cphBodyMain$gvwInscripciones', 'Page$1')

  This function __doPostBack fill a page of the datagrid.

- Parameters in eventArgument will be 'Page$1', Page$2', 'Page$3', etc...

- Download the 50 records from every datagrid page that has been loaded until we complete the 80,000 records

Please, don't get us wrong. We are not trying to hack or attack anything. All we need is to download the 80,000 records that are showed in a public aspx web site.

Is our idea correct? Is it possible to make a program to do that?
If you guys could give us some directions about how to start or links of program examples... it would be great. Thanks a lot !
Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros