I am trying to get the source code of a site. In windows application a simple http request would be enough. However in windows phone it is a lot more complicated. I searched
The problem is that you return sReturn
immediately, but the download won't complete until some time in the future. So sReturn
still has the default value of the empty string at the time you return it.
You can download this sample which includes code for doing exactly what you want to do using the HttpClient
portable library.