<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Kladdeliste.aspx.cs" Inherits="WebApplication2.WebForm1" %>
<!DOCTYPE html>
<html xmlns="
http://www.w3.org/1999/xhtml"> <head runat="server">
<title></title>
<style type="text/css">
#Top
{
background-color:black;
height:50px;
color:white;
text-align:center;
padding:6px;
}
#Venstre
{
line-height:40px;
background-color:red;
height:500px;
width:100px;
float:left;
padding:5px;
}
#Højre
{
width:350px;
float:left;
padding:10px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="Top">
</div>
<div id="Venstre">
</div>
<div id="Højre">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ShowFooter="True" DataKeyNames="Linie" ShowHeaderWhenEmpty="True"
OnRowCommand="GridView1_RowCommand" OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting"
BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
<%-- Theme properties --%>
<FooterStyle BackColor="White" ForeColor="#000066" />
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
<RowStyle ForeColor="#000066" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#007DBB" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#00547E" />
<Columns>
<asp:Templatefield HeaderText="Dato" >
<ItemTemplate>
<asp:Label Text='<%# Eval("Dato") %>' runat="server"/>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtDato" Text= '<%# Convert.ToDateTime(Eval("Dato")).ToString("yyyy/MM/dd") %>' runat="server" />
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtDatoFooter" runat="server" />
</FooterTemplate>
</asp:Templatefield>
<asp:Templatefield>
<ItemTemplate>
<asp:ImageButton ImageUrl="/Images/Edit.png" runat="server" CommandName="Edit" ToolTip="Rediger" Width="20px" Height="20px" />
<asp:ImageButton ImageUrl="/Images/Delete.png" runat="server" CommandName="Delete" ToolTip="Slet" Width="20px" Height="20px" />
</ItemTemplate>
<EditItemTemplate>
<asp:ImageButton ImageUrl="/Images/Save.png" runat="server" CommandName="Update" ToolTip="Gem" Width="20px" Height="20px" />
<asp:ImageButton ImageUrl="/Images/Cancel.png" runat="server" CommandName="Cancel" ToolTip="Fortryd" Width="20px" Height="20px" />
</EditItemTemplate>
<FooterTemplate>
<asp:ImageButton ImageUrl="/Images/Add.png" runat="server" CommandName="Tilføj" ToolTip="Tilføj" Width="20px" Height="20px" />
</FooterTemplate>
</asp:Templatefield>
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>