using System; using System.Collections.Generic; using System.Linq; using System.Xml.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class lugeja1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { XDocument doc = XDocument.Load("http://www.postimees.ee/rss"); var uudised = from uudis in doc.Descendants("item") select new HyperLink() { Text=uudis.Element("title").Value, NavigateUrl=uudis.Element("link").Value }; foreach (var uudis in uudised) { PlaceHolder1.Controls.Add(new LiteralControl("
  • ")); PlaceHolder1.Controls.Add(uudis); PlaceHolder1.Controls.Add(new LiteralControl("
  • ")); } } }