Änderungen JSON Serializer nach Import in Funktion

This commit is contained in:
ja
2022-01-04 09:24:30 +01:00
parent 5b68a21871
commit 11899dfb07

View File

@@ -311,6 +311,7 @@
<script type="text/javascript">
function doPostBack(id) {
let Speditionslabel = document.getElementById('<%=lbl_sped_Placeholder.ClientID%>');
let natplaceholder = document.getElementById('<%=lbl_Placeholder.ClientID%>');
alert(id)
@@ -333,13 +334,17 @@
//addNewRow(SDL,Bez,Datguenstig,KartNr)
// Pagemethods.filltable2(<%' =tbl_mainpage %> , SDL, Bez, Datguenstig, KartNr)
//}
var data = {
"Kennz": id.split(',')[0],
"NatLKW": id.split(',')[1]
};
data = JSON.stringify(data);
$.ajax({
type: "POST",
url: "LKWs.aspx/filltable2",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: '{"' + id.split(',')[0] + '"}',
data: data,
success: function (result) {
OnSuccess(result.d);
},
@@ -387,13 +392,17 @@
//addNewRow(SDL,Bez,Datguenstig,KartNr)
// Pagemethods.filltable2(<%' =tbl_mainpage_M%> , SDL, Bez, Datguenstig, KartNr)
//}
var data = {
"Kennz": id.split(',')[0],
"NatLKW": id.split(',')[1]
};
data = JSON.stringify(data);
$.ajax({
type: "POST",
url: "LKWs.aspx/filltable2",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: '{' + id.split(',')[0] + '}',
data: data,
success: function (result) {
OnSuccess(result.d);
},
@@ -404,7 +413,7 @@
function OnSuccess(success) {
alert('horray! 200 status code!');
//alert(success)
table_M.innerHTML = success;
table.innerHTML = success;
}
function OnFailure(error) {
alert(error);
@@ -416,6 +425,7 @@
alert('500 status code! server error');
}
}
//filltable2(id.split(',')[0])
}
</script>
</asp:Content>