Den eneste der er kommet med et foslag til låge 11 er – igen – Allan Hvam Petersen. Nu må i snart “pille” ham folkens :)
Her er Allans løsning.

![clip_image002[5] clip_image002[5]](http://danielfrost.dk/image.axd?picture=clip_image002%5B5%5D_thumb.jpg)
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MrFrost11.Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html401/strict.dtd">
<html>
<head>
<title>Mr. Frost </title>
<style type="text/css">
body { font-family: calibri; font-size: 10pt; }
h2 { font-size:11pt; }
.panel { height: 200px; width: 300px; }
div.panel a { color:#105CB6; text-decoration:none; }
div.panel a:hover, a:focus { color:#000033; }
.panel-footer { font-size: 10pt; text-align:right; font-weight:bold;}
div.panel ol { padding-left:20px; }
div.panel li { padding-bottom:5px;}
</style>
</head>
<body>
<div class="hslice" id="mrfrost" style="width: 320px">
<h2 class="entry-title">Mr. Frost - le Grand Bleu</h2>
<div class="entry-content">
<div class="panel">
<ol>
<% 1: foreach (var item in RssItems) { %>
<li><a href="<%= item.Url %>"><% 1: = item.Title
%></a></li>
<% 1: }
%>
</ol>
<div class="panel-footer"><a href="http://danielfrost.dk/">» more</a></div>
</div>
</div>
</div>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI;
using System.Xml.Linq;
namespace MrFrost11
{
public class RssItem
{
public string Title { get; set; }
public string Url { get; set; }
}
public partial class Default : Page
{
public IEnumerable<RssItem> RssItems { get; private set; }
protected void Page_Load(object sender, EventArgs e)
{
var feed = XDocument.Load("http://danielfrost.dk/syndication.axd");
RssItems = (from item in feed.Descendants("item") select new RssItem
{ Title = item.Element("title").Value, Url = item.Element("link").Value }).Take(5);
}
}
}