Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guys

I want to get data from another website web page, but that web page contain a grid with paging, when i get data from that page it only give me the 1 index data. but i want to get the all page inedx data so is there any way to get data from that site or any way to change the pagindex (means click on the another page index)

thanks
Posted
Comments
[no name] 3-Jan-13 11:39am    
Can you share your code here so that we can help you...
fjdiewornncalwe 3-Jan-13 17:20pm    
So you want to steal the data from another site...
If the owner of that data would like for you to have access to that data, then they would provide you an API or web service or such for you to access the data. Scraping data from another site is basically stealing when you come right down to it.
Sergey Alexandrovich Kryukov 3-Jan-13 17:55pm    
You are right, but it does not have to be a steal. Hope it won't be. So, I answered, but of course credited your comment — please see.
—SA

Of course, you can do it on server side. As you use ASP.NET, all .NET FCL is at your service. In this case, you need to use the class System.Net.HttpWebRequest. In some simplified cases, you can use the class System.Net.WebClient:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx[^].

Actually, what you try to achieve requires use of the techniques of Web scraping. Please see:
http://en.wikipedia.org/wiki/Web_scraping[^].

You can find further detail in my past answers:
get specific data from web page[^],
How to get the data from another site[^].

Please take into account what Marcus Kramer told you in hist comment to the question. :-)

Good luck,
—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 3-Jan-13 18:50pm    
5'ed!
Sergey Alexandrovich Kryukov 3-Jan-13 19:00pm    
Thank you, Espen.
—SA
The only way you can do that, if it's an external site, is to look at the URL to see if you can pass the page index that way, or somehow automate a program that simulates browsing, via a web browser control.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900