I need a web sites some data which I want to parse via jquery. I am able to do everything except the pagination which contain javascript anchor link.

(source: grinshare.com)
<a href="javascript:__doPostBack('grdResults$ctl29$ctl01','')">2</a>
I want to load the second page (certain selector, say “p #listo”) in a paragraph in the 1st page via ajax. Can I do this via ajax? if it is possible, please can you share the code..
Thanks in advance..
Note:
I want to get the 2nd page via ajax…I tried a lot things….
$.ajax({
url: __doPostBack('grdResults$ctl29$ctl01',''),
success: function(data){
//Some function I will perform
}
});
But it reload the page…if I use quotation for url it give error… I tried get, load, post but unable to do it…
You need to have a URL that outputs data and handles pagination on the server side. For example, it could be /mydata/page/3/, and it would grab page 3 of the data and return it in some format (JSON, XML, YAML, whatever).
Then, you can have jQuery send an ajax request on click of each of the items in the pagination controller instead of running __doPostBack().
Switching to ASP.NET MVC would help you.