<%@ Control Language="C#" AutoEventWireup="true"   CodeFile="News.ascx.cs" Inherits="controls_News"  %>

<div class="displayheader">News</div>
<br />
<asp:DataList ID="dl_articles"  runat="server" CssClass="newsControl">
<HeaderTemplate>
</HeaderTemplate>
   <ItemTemplate >
      <table class="newslisttable">
          <tr class="newslistrow">
            <td class="newslisttoolbar">
                <b>Posted by <%#DataBinder.Eval(Container.DataItem, "Poster")%> on 
                <%#DataBinder.Eval(Container.DataItem, "Timestamp")%>
            </td>
          </tr>
          <tr class="newslistrow">
            <td>
                <br />
                <b><%#DataBinder.Eval(Container.DataItem, "Subject")%></b><br />
                <br />
                <%#Server.UrlDecode(DataBinder.Eval(Container.DataItem, "Description").ToString())%>
                <br />
            </td>
          </tr>
      </table>
    </ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:DataList>

<center>
<p>
    <asp:Button ID="ButtonFirstPage1" runat="server" Text="First" onclick="ButtonFirstPage1_Click" />
    <asp:Button ID="ButtonPrePage1" runat="server" Text="Prev" onclick="ButtonPrePage1_Click" />
    <asp:Label ID="LabelPageNum1" runat="server"></asp:Label>/
    <asp:Label ID="LabelPageAmount1" runat="server"></asp:Label>
    <asp:Button ID="ButtonNextPage1" runat="server" Text="Next" onclick="ButtonNextPage1_Click" />
    <asp:Button ID="ButtonLastPage1" runat="server" Text="Last" onclick="ButtonLastPage1_Click" />
</p>
</center>    