Avatar of miyahira
miyahiraFlag for Peru asked on

Calling external aspx page and trigger its __doPostBack event automatically


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 !

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes