Click here to Skip to main content
11,644,284 members (65,658 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Dear members ;

I want to parse some webpage text for a software i'm making. (windows App)
I have a problem in getting the text inside the webpage if it's called by ajax
As an example:
Facebook event page
Or
http://culturewheel.com/eng/Calendar[^]

using the WebClient or HttpRequest/Response Does NOT get the actual or filled text (As you'll find it in Right Click --> Inspect Element for example).


How can i get the Whole webpage (After all the ajax calling & filling etc)?


Thank you in Advance;
Posted 6-Jun-12 4:00am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You need to write a browser, pretty much. Or embed one (e.g. the WebBrowser control). And then you need to work out how to determine when 'everything' has been done, since the completion of the request and the onLoad event won't tell you any more.

It's a huge can of worms, you should use an alternative if at all possible. For example I think Facebook has an API you can use to retrieve information like events.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 650
1 jyo.net 494
2 Afzaal Ahmad Zeeshan 423
3 Sergey Alexandrovich Kryukov 409
4 CPallini 352
0 OriginalGriff 925
1 DamithSL 636
2 Afzaal Ahmad Zeeshan 622
3 Sergey Alexandrovich Kryukov 548
4 CPallini 521


Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 6 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100