Code:
try
{
r = request.GetResponse();
r.Close();
GridView1.DataSource = RSS(url);
GridView1.DataBind();
}
catch (Exception)
{
Response.Write("Invalid URL");
}
Leave a comment: