using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml; using System.Xml.Linq; public partial class rss0 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { DataTable dt = GetRSSFeed("http://www.postimees.ee/rss/39"); DataList1.DataSource = dt; DataList1.DataBind(); } protected DataTable GetRSSFeed(String strURL) { XmlTextReader reader = new XmlTextReader(strURL); DataSet ds = new DataSet(); ds.ReadXml(reader); return ds.Tables["item"]; } }