Index()를 Index.aspx 뷰를 반환하는 HomeController에서 호출한다고하면 다른 컨트롤러 (ExternalController)의 메서드를 호출하여 Index.aspx의 javascript에서 jquery ajax를 사용할 수 있습니까? 뷰가 다른 컨트롤러에서 생성 된 경우 컨트롤러에서 메서드를 호출 할 수 있습니까?
$.ajax({
type: "POST",
url: "/Home/sayHi",
dataType: "json",
data:({ currRow : centerPost[0], offset : ((-1 * Math.ceil(numRows/2)) + 1) }),
error:function(request){alert(request.statusText)},
success:function(result){alert(result)}
}).responseText;
나에게 오류를주지 않았다, 페이지가 내가 전화 했어 있기 때문에 될 수 있으면
그냥 궁금 ...
$.ajax({
type: "POST",
url: "/Row/getRowName",
dataType: "json",
data:({ currRow : centerPost[0], offset : ((-1 * Math.ceil(numRows/2)) + 1) }),
error:function(request){alert(request.statusText)},
success:function(result){alert(result)}
}).responseText;
이 나에게 내부 서버 오류를 준 HomeController에서 렌더링 된 보기가 렌더링 된 컨트롤러와 다른 컨트롤러