private string GetWeather(string strRegisterNo)
{
string getWeatherUrl = "http://XX.XX.XX.XX :XXXX/QuestionResult.aspx?method=GetQuestionResultData&reportNo=" + strRegisterNo + ""; //
WebRequest webReq = WebRequest.Create(getWeatherUrl);
WebResponse webResp = webReq.GetResponse();
Stream stream = webResp.GetResponseStream();
StreamReader sr = new StreamReader(stream, Encoding.UTF8);
string html = sr.ReadToEnd();
sr.Close();
stream.Close();
return html.Replace("(", "").Replace(")", "");
}
05-26 12:59