<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="Wettkampfort.aspx.cs" Inherits="QW2021C.Administration.Wettkampfort" %>

<%@ Register Assembly="Syncfusion.EJ.Web, Version=18.3460.0.35, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Web" TagPrefix="ej" %>
<%@ Register Assembly="Syncfusion.EJ, Version=18.3460.0.35, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Models" TagPrefix="ej" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Label runat="server"><h4>Wettkampforte</h4></asp:Label>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:QWToolConnectionstring %>" 
        DeleteCommand="DELETE FROM [Wettkampf] WHERE [nreintrag] = @nreintrag" 
        InsertCommand="INSERT INTO [Wettkampf] ([Wettkampf1], [Wettkampf2], [Wettkampf3], [Wettkampf4]) VALUES (@Wettkampf1, @Wettkampf2, @Wettkampf3, @Wettkampf4)" 
        SelectCommand="SELECT * FROM [Wettkampf]" 
        UpdateCommand="UPDATE [Wettkampf] SET [Wettkampf1] = @Wettkampf1, [Wettkampf2] = @Wettkampf2, [Wettkampf3] = @Wettkampf3, [Wettkampf4] = @Wettkampf4">
        <DeleteParameters>
            <asp:Parameter Name="nreintrag" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="Wettkampf1" Type="String" />
            <asp:Parameter Name="Wettkampf2" Type="String" />
            <asp:Parameter Name="Wettkampf3" Type="String" />
            <asp:Parameter Name="Wettkampf4" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="Wettkampf1" Type="String" />
            <asp:Parameter Name="Wettkampf2" Type="String" />
            <asp:Parameter Name="Wettkampf3" Type="String" />
            <asp:Parameter Name="Wettkampf4" Type="String" />
            <asp:Parameter Name="nreintrag" Type="Int32" />
        </UpdateParameters>
    </asp:SqlDataSource>
    <ej:Grid ID="Grid1" runat="server" CssClass="" DataSourceCachingMode="None" DataSourceID="SqlDataSource1" EnableLoadOnDemand="False" Locale="de-DE" MinWidth="0">
        <Columns>
            <ej:Column AllowEditing="False" DataType="number" Field="nreintrag" IsIdentity="True" IsPrimaryKey="True" Visible="false">
            </ej:Column>
            <ej:Column DataType="string" Field="Wettkampf1">
            </ej:Column>
            <ej:Column DataType="string" Field="Wettkampf2">
            </ej:Column>
            <ej:Column DataType="string" Field="Wettkampf3">
            </ej:Column>
            <ej:Column DataType="string" Field="Wettkampf4">
            </ej:Column>
        </Columns>
        <EditSettings AllowEditing="True" EditMode="Dialog" />
    </ej:Grid>
</asp:Content>