Я вызываю WebMethod внутри моего приложения. Недавно я изменил конфигурацию root, чтобы обновить многоязычную часть.
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("languageHome","{language}/{page}","~/{page}.aspx");
}
С тех пор кажется, что я не могу вызвать WebMethod с jQuery
function ShowNumeroLame() {
$.ajax({
type: "POST",
url: "Home/GetNumeroLame",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccessNumeroLame,
error: function () {
},
failure: function (response) {
}
});
}
Я думаю, что проблема в URL, но я не могу ее найти
Спасибо, и извините за мои плохие объяснения