<%@ Page Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="Userdata.aspx.cs" Inherits="QW2021C.UserFunktionen.Userdata" %>

<%@ 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>Benutzer-Daten</h4></asp:Label>
    <br />
    Bevor Sie die Anwendung verwenden können, bitten wir Sie, Ihre Daten (mind. Name und E-Mail) zu vervollständigen.
    <br />
    <br />

    <table>
        <tr>
            <td style="width: 100px">Verein
            </td>
            <td style="width: 100px">
                <asp:Label ID="lblverein" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">Name
            </td>
            <td style="width: 100px">
                <asp:TextBox ID="txtname" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">Vorname
            </td>
            <td style="width: 100px">
                <asp:TextBox ID="txtvorname" runat="server"></asp:TextBox>

            </td>
        </tr>
        <tr>
            <td style="width: 100px">E-Mail
            </td>
            <td style="width: 100px">
                <asp:TextBox ID="txtemail" runat="server"></asp:TextBox>

            </td>
        </tr>
    </table>
    <br />
    <br />
    <asp:Button ID="SpeicherBtn" runat="server" Text="Speichern" OnClick="SaveBtn_Click" />
    <br />
    <asp:Label ID="lblerror" Text="" ForeColor="Red" runat="server"></asp:Label>
 
    <br />
       <div>
       <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
        ControlToValidate="txtname" ErrorMessage="Name fehlt"></asp:RequiredFieldValidator>

       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
        ControlToValidate="txtemail" ErrorMessage="E-Mail-Adresse fehlt"></asp:RequiredFieldValidator>
    
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
        ControlToValidate="txtemail" ErrorMessage="E-Mail-Adresse ist ungültig" 
        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </div>
    <br />
</asp:Content>


