How to use HttpWebResponse response = (HttpWebResponse)webreq.BeginGetResponse() in Silverlight
hi,
i developing application takes data yahoo web service below code:
string symbol;
string yahoourl = @"http://download.finance.yahoo.com/d/quotes.csv?s=" + symbol + "&f=sl1d1t1c1hgvbap2";
httpwebrequest webreq = (httpwebrequest)webrequest.create(yahoourl);
httpwebresponse response = (httpwebresponse)webreq.begingetresponse();
the response object not expose getresponse() method use in asp.net httpwebresponse.
please let me know how use httpwebrequest , httpwebresponse in silverlight.
thanks
jaspreet singh
when try implement same functionality in silverlight causing me issues why???.
because of mentioned in last reply. silverlight obeys written in policy file , doesn't allow request. sample works asp.net, not restricted in same way, works.
you can put code in page class in wcf service same (then query wcf service silverlight).
Silverlight > Programming Silverlight with .NET – General
Comments
Post a Comment