
Originally Posted by
salman.pilabs
I am new and start doing working on windows phone app a few days back. Can any one help me that how to send asynchrous call on server or any url for getting json as a result ?
Thanks.
Hello you can use the WebClient class and getting the json with the DownloadStringAsync, which fires OnDownloadStringCompleted
then in the OnDownloadStringCompleted you do whatever you want with the result
Code:
protected override void OnDownloadStringCompleted (DownloadStringCompletedEventArgs e)
{
if(e.Result == null ) return;
else // start parsing your json.
}