Änderunge validierungen der login felder

This commit is contained in:
ja
2021-10-07 11:26:11 +02:00
parent 4bcff2222e
commit 46f11a72eb
5 changed files with 58 additions and 36 deletions

View File

@@ -75,38 +75,52 @@
<!-- <tr style=" background-image: linear-gradient(to right, #003680 , #0055cc);color:#fff;height:30px;font-size:12px">
<td align="center" colspan="2" style="color:#fff;font-kerning:auto;font-weight:700;">Bitte melden Sie sich an:</td>
</tr> -->
<tr style="color:#003680; height:50px;">
<tr style="color:#003680; height:40px;">
<td align="center" colspan="2" style="color:#003680;font-kerning:auto;font-weight:700;">
<asp:Label ID="lbl_login" runat="server" Text="Login" CssClass="txt_design" ></asp:Label></td>
</tr>
<tr style="color:#003680; height:50px;">
<td align="right">
<asp:Label ID="CustomerIDLabel" runat="server" AssociatedControlID="CustomerID" CssClass="txt_design">Kundennummer:</asp:Label>
<tr style="color:#003680; height:30px;">
<td align="left" colspan="2">
<asp:Label ID="CustomerIDLabel" runat="server" AssociatedControlID="CustomerID" CssClass="txt_design">Kundennummer:</asp:Label>
</td>
<td>
<asp:TextBox ID="CustomerID" runat="server" TextMode="Number" required="true"></asp:TextBox>
<asp:RequiredFieldValidator ID="CustomerIDrequired" runat="server" ControlToValidate="CustomerID" ErrorMessage="Die Kundennummer ist erforderlich." ToolTip="Die Kundennummer ist erforderlich." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
<td align="left" colspan="2">
<asp:TextBox ID="CustomerID" runat="server" required="true" ValidationGroup="txt_check"></asp:TextBox>
</td></tr>
<tr style="color:#003680; height:15px;">
<td align="right">
<asp:RequiredFieldValidator ID="CustomerIDrequired" runat="server" ControlToValidate="CustomerID" ToolTip="Die Kundennummer ist erforderlich." ValidationGroup="Login1">Die Kundennummer ist erforderlich.</asp:RequiredFieldValidator>
</td></tr>
<tr style="color:#003680; height:15px;">
<td align="right">
<asp:RegularExpressionValidator ID="valid_getNumberInput" ControlToValidate="CustomerID" ValidationGroup="txt_check" runat="server" Display="Dynamic" SetFocusOnError="true" ValidationExpression="^[0-9]"></asp:RegularExpressionValidator>
</td>
</tr>
<tr style="color:#003680; height:50px;">
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="txt_design">Benutzername:</asp:Label>
</td>
<td>
<tr style="color:#003680; height:30px;">
<td align="left" colspan="2">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="txt_design">Benutzername:</asp:Label>
</td>
<td align="left" colspan="2">
<asp:TextBox ID="UserName" runat="server" TextMode="SingleLine" required="true"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNamerequired" runat="server" ControlToValidate="UserName" ErrorMessage="Der Benutzername ist erforderlich." ToolTip="Der Benutzername ist erforderlich." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr style="color:#003680; height:20px;">
<td align="right">
<asp:RequiredFieldValidator ID="UserNamerequired" runat="server" ControlToValidate="UserName" ErrorMessage="Der Benutzername ist erforderlich." ToolTip="Der Benutzername ist erforderlich." ValidationGroup="Login1">Der Benutzername ist erforderlich.</asp:RequiredFieldValidator>
</td>
</tr>
<tr style="color:#003680; height:50px;">
<td align="right">
<tr style="color:#003680; height:30px;">
<td align="left" colspan="2">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass="txt_design">Kennwort:</asp:Label>
</td>
<td>
<asp:TextBox ID="Password" runat="server" TextMode="Password" required="true"></asp:TextBox>
<asp:RequiredFieldValidator ID="Passwordrequired" runat="server" ControlToValidate="Password" ErrorMessage="Das Kennwort ist erforderlich." ToolTip="Das Kennwort ist erforderlich." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
<td align="left" colspan="2">
<asp:TextBox ID="Password" runat="server" TextMode="Password" required="true" ValidationGroup="Login2" MaxLength="30"></asp:TextBox>
</td></tr>
<tr style="color:#003680; height:20px;">
<td align="right">
<asp:RequiredFieldValidator ID="Passwordrequired" runat="server" ControlToValidate="Password" ErrorMessage="Das Kennwort ist erforderlich." ToolTip="Das Kennwort ist erforderlich." ValidationGroup="Login2">Bitte Passwort angeben.</asp:RequiredFieldValidator>
</td>
</tr>
<tr style="color:#003680; height:50px;">
<tr style="color:#003680; height:30px;">
<td>
<asp:CheckBox ID="RememberMe" runat="server" Text="Anmeldedaten speichern." />
</td>
@@ -116,11 +130,11 @@
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr style="color:#003680; height:50px;">
<tr style="color:#003680; height:20px;">
<td align="left" colspan="2">
<br/> <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login" ValidationGroup="Login1" target="_top" OnClientClick="bust2()"/>
</td>
<tr style="color:#003680; height:50px;">
<tr style="color:#003680; height:20px;">
<td align="middle" colspan="2">
<asp:LinkButton ID="LinkButton1" runat="server" target="_top" OnClientClick="bust2()">Admin-Login</asp:LinkButton>
</td>