1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27:
| var begruendung = 'Test123';
$.ajax({ type: "POST", url: "Rechnungen_Page.aspx/MahnstopBeantragen", data: JSON.stringify({ "begruendung": begruendung, "zahlungsziel": dpZahldatum.GetValue(), "mahnstopEnde": dpMahnstopEnde.GetValue() }), contentType: "application/json; charset=utf-8", dataType: "json", error: function (XMLHttpRequest, textStatus, errorThrown) { }, success: function (result) { if (result.d[0] == "true") { $('#successTextMahnstop').html(result.d[1]); $('#successTextMahnstop').show(); $('#errorTextMahnstop').hide(); } else { $('#errorTextMahnstop').html(result.d[1]); $('#errorTextMahnstop').show(); $('#successTextMahnstop').hide(); } } }); |