AJAX Call returning 404(Local) in IIS 7.5 but same works in other IIS

后端 未结 4 1812
傲寒
傲寒 2021-01-31 10:39

Am having the AJAX calls to my controller in my MVC Application

Controller/FunctionName



$.ajax({
        type: \"GET\",
        contentType: \"application/jso         


        
4条回答
  •  生来不讨喜
    2021-01-31 11:30

    You can use double dot in the url:

    $.ajax({
       url: '../ControllerName/ActionName',
       .......
    });
    

提交回复
热议问题