Error validation und suchen nach SQL Fehler (noch nicht erfolgreich)
This commit is contained in:
@@ -63,15 +63,19 @@
|
||||
</div>
|
||||
<div style="height:5px"></div>
|
||||
<div class="row">
|
||||
<div class="col-12">Kennzeichen:<asp:TextBox runat="server" ID="txt_LkwNr" Width="110px" style="margin-left:25px"></asp:TextBox><asp:Button ID="btn_Suchen" OnClick="btn_Suchen_Click" runat="server" Text="Suchen" style="margin-left:5px"/> </div>
|
||||
<div class="col-12">Kennzeichen:
|
||||
<asp:TextBox runat="server" ID="txt_LkwNr" Width="110px" style="margin-left:25px"></asp:TextBox>
|
||||
<asp:Button ID="btn_Suchen" OnClick="btn_Suchen_Click" runat="server" Text="Suchen" style="margin-left:5px"/> </div>
|
||||
<div class="col-9">
|
||||
<div class="col-9"style="height:10px;"></div>
|
||||
<div class="col-9">
|
||||
<asp:RegularExpressionValidator Display="Dynamic" Enabled="true" ID="valregex_txt_knz" ControlToValidate="txt_LkwNr" ValidationExpression="^[A-Za-z1-9]" runat="server">Please valid Truck license Plate!</asp:RegularExpressionValidator>
|
||||
</div>
|
||||
<div class="flex-col-9">
|
||||
<asp:Table ID="Table1" runat="server"></asp:Table>
|
||||
<asp:Table ID="tbl_sidemenue" runat="server" CssClass="table table-striped" style="width:310px;margin-left:-32px;">
|
||||
<asp:TableHeaderRow style="background-color:#043381;color:#fff;font-size:0.86em"><asp:TableHeaderCell ID="tbhc_KFZKennz">KFZ-Kennzeichen</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_Nat">Nat.</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Verk">Verk</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Kz">KZ-An</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Verm">Vermerk</asp:TableHeaderCell></asp:TableHeaderRow>
|
||||
</asp:Table>
|
||||
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
@@ -99,20 +103,22 @@
|
||||
<div class="d-md-none">
|
||||
<div class="col-12"></div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<asp:Button ID="btn_alle_M" runat="server" CssClass="btn btn-primary" ClientIDMode="Predictable" style="margin-left:-36px; width:76px" Text="Alle" />
|
||||
<div class="col-12">
|
||||
<asp:Button ID="btn_alle_M" runat="server" CssClass="btn btn-primary" ClientIDMode="Predictable" style="margin-left:-24px; width:76px" Text="Alle" />
|
||||
</div>
|
||||
<div style="height:10px"></div>
|
||||
<div class="row">
|
||||
<div class="col-12">Kennzeichen:<asp:TextBox runat="server" ID="txt_LKWNr_M" Width="130px" style="margin-left:20px"></asp:TextBox><asp:Button ID="btn_Suchen_M" OnClick="btn_Suchen_M_Click" runat="server" CssClass="btn btn-primary" Text="Suchen" style="margin-left:10px" /></div>
|
||||
<div style="height:20px"></div>
|
||||
<div class="row" style="margin-left:-30px">
|
||||
<div class="col-12">Kennzeichen:<asp:TextBox runat="server" ID="txt_LKWNr_M" Width="120px" style="margin-left:4px"></asp:TextBox>
|
||||
<asp:Button ID="btn_Suchen_M" OnClick="btn_Suchen_M_Click" runat="server" CssClass="btn btn-primary" Text="Suchen" style="margin-left:0px" /></div>
|
||||
</div>
|
||||
<div style="height.16px"></div>
|
||||
<div class="col-9-flex">
|
||||
<div style="height:17px"></div>
|
||||
<div class="col-12-flex">
|
||||
<asp:Table ID="tbl_2" runat="server">
|
||||
<asp:TableHeaderRow style="background-color:#043381;color:#fff"><asp:TableHeaderCell ID="tbhc_KFZKennz_M">KFZ_Kennzeichen</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_Nat_M">Nat.</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_Verk_M">Verk.</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_KZ_An_M">KZ-An</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Verm_M">Vermerke</asp:TableHeaderCell></asp:TableHeaderRow>
|
||||
</asp:Table>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height:22px"></div>
|
||||
<div class="col-12">
|
||||
<div class="col-12">
|
||||
<asp:Image runat="server" ClientIDMode="AutoID" ID="Img_Text1_M" ImageUrl="~/images/truck.png" style="width:96px;height:56px" />
|
||||
@@ -130,6 +136,10 @@
|
||||
<asp:TableHeaderRow style="background-color:#043381;color:#fff"><asp:TableHeaderCell ID="tblhc_SDLNr_M">SDL_Nr</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Bez_M">Bezeichnung</asp:TableHeaderCell><asp:TableHeaderCell ID="tbl_gueltig_M">Gültig Bis</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_KarteNr_M">Karten-Nummer</asp:TableHeaderCell></asp:TableHeaderRow>
|
||||
</asp:Table>
|
||||
</div>
|
||||
<div style="height:22px"></div>
|
||||
<div class="col-12">
|
||||
<asp:RegularExpressionValidator Display="Dynamic" Enabled="true" ID="regex_val_txtLKW_M" ControlToValidate="txt_LkwNr_M" ValidationExpression="^[A-Za-z1-9]" runat="server">Please valid Truck license Plate!</asp:RegularExpressionValidator>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -9,6 +9,15 @@ Partial Class LKWS
|
||||
Dim list As Collections.Generic.List(Of VERAG_PROG_ALLGEMEIN.cSDL) = Nothing
|
||||
Protected Sub Page_Load(sender As Object, ByVal e As System.EventArgs) Handles Me.Load
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = True
|
||||
'ConnectionString = "Server=DEVELOPER\DEVSQL;Database=VERAG_HOMEPAGE;Uid=sa;Pwd=BmWr501956"
|
||||
|
||||
Else
|
||||
VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = False
|
||||
|
||||
'ConnectionString = "Server=db593295684.db.1and1.com;Database=db593295684;Uid=dbo593295684;Pwd=atilla#2;"
|
||||
End If
|
||||
If Me.Page.User.Identity.IsAuthenticated Then
|
||||
Try
|
||||
Kdnrtext = Session.Item("CustomerID")
|
||||
|
||||
@@ -6,7 +6,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "VERAG_Homepage", "http://localhost:56551", "{11EF0CDA-BC19-40FB-91C4-25C81F3A27AC}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
UseIISExpress = "true"
|
||||
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.7"
|
||||
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.7.1"
|
||||
ProjectReferences = "{a3b497bd-842c-4a2b-b398-ed1976849df1}|VERAG_PROG_ALLGEMEIN.dll;"
|
||||
Debug.AspNetCompiler.VirtualPath = "/localhost_56551"
|
||||
Debug.AspNetCompiler.PhysicalPath = "..\VERAG_Homepage\"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Weitere Informationen zum Konfigurieren der ASP.NET-Anwendung finden Sie unter
|
||||
http://go.microsoft.com/fwlink/?LinkId=169433
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<head>
|
||||
<%@ import Namespace="MySql.Data.MySqlClient" %>
|
||||
<script runat="server">
|
||||
|
||||
Sub Page_Load() Handles Me.Load
|
||||
' MsgBox ("test")
|
||||
'Dim con As New MySqlConnection
|
||||
|
||||
Reference in New Issue
Block a user