<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Indhold_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td style="width: 100px; height: 24px">
</td>
<td style="width: 100px; height: 24px">
Program:</td>
<td style="width: 100px; height: 24px">
Status:</td>
<td style="width: 729px; height: 24px">
</td>
<td style="width: 100px; height: 24px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 24px">
</td>
<td style="width: 100px; height: 24px">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" OnTextChanged="DropDownList1_TextChanged">
<asp:ListItem>Vælg</asp:ListItem>
<asp:ListItem Value="Budget">Budget</asp:ListItem>
<asp:ListItem>Bil</asp:ListItem>
<asp:ListItem>Database</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 100px; height: 24px">
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" OnTextChanged="DropDownList1_TextChanged">
<asp:ListItem>Vælg</asp:ListItem>
<asp:ListItem>Ikke udført</asp:ListItem>
<asp:ListItem>Udført</asp:ListItem>
<asp:ListItem>Afvent</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 729px; height: 24px">
<asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" /></td>
<td style="width: 100px; height: 24px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 21px;">
</td>
<td style="width: 100px; height: 21px;">
Program:</td>
<td style="width: 100px; height: 21px;">
Tekst:</td>
<td style="width: 729px; height: 21px;" rowspan="2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="Program skal angives."></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox1"
ErrorMessage="Tekst skal angives."></asp:RequiredFieldValidator></td>
<td rowspan="3" style="width: 100px; height: 21px" >
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="\\_Status.mdb"
DeleteCommand="DELETE FROM `T_Status` WHERE `F_Id` = ?" InsertCommand="INSERT INTO `T_Status` (`F_Id`, `Prioritet`, `Program`, `Omraade`, `Tekst`, `Status`, `Udfoertdato`, `Konsekvens SQL`, `Bemaerkning`, `Udviklingstid`, `Pris`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
SelectCommand="SELECT `F_Id`, `Prioritet`, `Program`, `Omraade`, `Tekst`, `Status`, `Udfoertdato`, `Konsekvens SQL` AS `Konsekvens_SQL`, `Bemaerkning`, `Udviklingstid`, `Pris` FROM `T_Status` WHERE `Program`=? AND `Status`=?"
UpdateCommand="UPDATE `T_Status` SET `Prioritet` = ?, `Program` = ?, `Omraade` = ?, `Tekst` = ?, `Status` = ?, `Udfoertdato` = ?, `Konsekvens SQL` = ?, `Bemaerkning` = ?, `Udviklingstid` = ?, `Pris` = ? WHERE `F_Id` = ?" OnSelected="AccessDataSource1_Selected">
<DeleteParameters>
<asp:Parameter Name="F_Id" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Prioritet" Type="Double" />
<asp:Parameter Name="Program" Type="String" />
<asp:Parameter Name="Omraade" Type="String" />
<asp:Parameter Name="Tekst" Type="String" />
<asp:Parameter Name="Status" Type="String" />
<asp:Parameter Name="Udfoertdato" Type="DateTime" />
<asp:Parameter Name="Konsekvens_SQL" Type="Boolean" />
<asp:Parameter Name="Bemaerkning" Type="String" />
<asp:Parameter Name="Udviklingstid" Type="String" />
<asp:Parameter Name="Pris" Type="String" />
<asp:Parameter Name="F_Id" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="?" PropertyName="Text" />
<asp:ControlParameter ControlID="TextBox2" Name="?" PropertyName="Text" DefaultValue=" " />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="F_Id" Type="Int32" />
<asp:Parameter Name="Prioritet" Type="Double" />
<asp:Parameter Name="Program" Type="String" />
<asp:Parameter Name="Omraade" Type="String" />
<asp:Parameter Name="Tekst" Type="String" />
<asp:Parameter Name="Status" Type="String" />
<asp:Parameter Name="Udfoertdato" Type="DateTime" />
<asp:Parameter Name="Konsekvens_SQL" Type="Boolean" />
<asp:Parameter Name="Bemaerkning" Type="String" />
<asp:Parameter Name="Udviklingstid" Type="String" />
<asp:Parameter Name="Pris" Type="String" />
</InsertParameters>
</asp:AccessDataSource>
</td>
</tr>
<tr>
<td style="width: 100px; height: 27px;" align="right">
<asp:Button ID="Button1" runat="server" Text="Opret" OnClick="Button1_Click" /></td>
<td style="width: 100px; height: 27px;">
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged"></asp:TextBox></td>
<td style="width: 100px; height: 27px;">
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; height: 327px;" colspan="4">
<asp:GridView ID="GridView2" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="F_Id" DataSourceID="AccessDataSource1"
EmptyDataText="There are no data records to display.">
<Columns>
<asp:BoundField DataField="F_Id" HeaderText="F_Id" ReadOnly="True" SortExpression="F_Id"
Visible="False" />
<asp:BoundField DataField="Prioritet" HeaderText="Prioritet" SortExpression="Prioritet" />
<asp:BoundField DataField="Program" HeaderText="Program" SortExpression="Program" />
<asp:BoundField DataField="Omraade" HeaderText="Omraade" SortExpression="Omraade"
Visible="False" />
<asp:BoundField DataField="Tekst" HeaderText="Tekst" SortExpression="Tekst" />
<asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" Visible="False" />
<asp:BoundField DataField="Udfoertdato" HeaderText="Udfoertdato" SortExpression="Udfoertdato"
Visible="False" />
<asp:CheckBoxField DataField="Konsekvens_SQL" HeaderText="Konsekvens_SQL" SortExpression="Konsekvens_SQL"
Visible="False" />
<asp:BoundField DataField="Bemaerkning" HeaderText="Bemaerkning" SortExpression="Bemaerkning"
Visible="False" />
<asp:BoundField DataField="Udviklingstid" HeaderText="Udviklingstid" SortExpression="Udviklingstid"
Visible="False" />
<asp:BoundField DataField="Pris" HeaderText="Pris" SortExpression="Pris" Visible="False" />
<asp:CommandField ShowEditButton="True" />
<asp:HyperLinkField DataNavigateUrlFields="F_Id" DataNavigateUrlFormatString="indhold.aspx?F_Id={0}"
HeaderText="Detaljer" NavigateUrl="~/Indhold/indhold.aspx" Text="Vis" />
</Columns>
</asp:GridView>
<br /></td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 729px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 21px;">
</td>
<td style="width: 100px; height: 21px;">
</td>
<td style="width: 100px; height: 21px;">
</td>
<td style="width: 729px; height: 21px;">
</td>
<td style="width: 100px; height: 21px;">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>