Hi,
I have tryed to load my rss feeds from a given URL by using following code in my web part. But the problem is when the URL does not exists i get web part Error something like "WebPart1 has occured a error .. if you have permission troubleshoot.....
HttpWebRequest HWReq = (HttpWebRequest)WebRequest.Create(URL);
// I have to use following row if i want to know if HWReq.HaveResponse is false or true, and it is the problem itself, I get the error when it call GetResponse(), so i have to have some contorl before following row. but what control?
HttpWebResponse HWResp = (HttpWebResponse)HWRequest.GetResponse();
I have tryed to load my rss feeds from a given URL by using following code in my web part. But the problem is when the URL does not exists i get web part Error something like "WebPart1 has occured a error .. if you have permission troubleshoot.....
HttpWebRequest HWReq = (HttpWebRequest)WebRequest.Create(URL);
// I have to use following row if i want to know if HWReq.HaveResponse is false or true, and it is the problem itself, I get the error when it call GetResponse(), so i have to have some contorl before following row. but what control?
HttpWebResponse HWResp = (HttpWebResponse)HWRequest.GetResponse();