Question: In the WCF application that I am working on, I need to access the generated source of a particular webpage (after all the AJAX calls on the page are made).

I have tried using `System.Net.WebRequest` but it just brings me back the original source of the page. Is there a way to execute a page and then get the source?

Else, is there a way to execute Javascript from within a WCF service? I could use the javascript and JSON response to create the HTML page from within my webservice then!

Answer: 
You could use Javascript to traverse and pass the DOM than make a call into your WCF service from the Javascript when all the Ajax calls are complete. If you are after the data that is stored on the page after all the Ajax calls I would re-think your implementation...

Petar
Well, WCF is designed to be consumed by non-browsers, so there really is no way to expect that a WCF response can contain Javascript that will be automatically executed by the client.