-1
我的工作SL4,当我运行下面的代码它给我的错误作为在Silverlight中的HttpWebRequest不包含定义的GetResponse()
的HttpWebRequest不包含定义的GetResponse()。
然后如何得到回应。
string str = "http://sam.com/getdeatils.php";
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(str);
HttpWebResponse response = (HttpWebResponse)httpWebRequest.GetResponse();
Stream responseStream = response.GetResponseStream();
StreamReader streamReader = new StreamReader(responseStream);
string end = stream Reader.ReadToEnd();