Hi
It shows below error in Developer Tools
SCRIPT5022: ASP.NET Ajax client-side framework failed to load.
SCRIPT5009: 'Sys' is undefined
SCRIPT1003: Expected ':'
JavaScript
$("#ddlTrainingType").change(function (e) {
$.ajax({
url: "TrainingReport.aspx/BindTrainingModule",
data: '{"Id": + $(this).val() }',
debugger;
type: "POST",
contentType: "application/json;charset=UTF-8",
dataType: "json",
success: function (result, status, xhr) {
$("#lstTrainingModule").html(result.d);
},
error: function (xhr, status, error) {
alert("error0");
alert("Result: " + status + " " + error + " " + xhr.status + " " + xhr.statusText)
}
});
});Thanks

Sachin SinghRank #66 · 26.2K reputationPosted Oct 9, 2022, 3:44 AM EDT
test this
$("#ddlTrainingType").change(function (e) { debugger; $.ajax({ url: "TrainingReport.aspx/BindTrainingModule", data: '{"Id": + $(this).val() }', type: "POST", contentType: "application/json;charset=UTF-8", dataType: "json", success: function (result, status, xhr) { $("#lstTrainingModule").html(result.d); }, error: function (xhr, status, error) { alert("error0"); alert("Result: " + status + " " + error + " " + xhr.status + " " + xhr.statusText) } }); });Ramco RamcoRank #462 · 5.4K reputationPosted Oct 10, 2022, 1:24 AM EDT
Hi Sachin
Main Issue is below error . I am not able to use Ajax functionalty in whole project. I am using Visual Studio 2019. Web.config file also attached.
SCRIPT5022: ASP.NET Ajax client-side framework failed to load.
SCRIPT5009: 'Sys' is undefined
Thanks