Ajax call not hitting controller action method in asp.net mvc.

preview_player
Показать описание

When I try to call the controller function outside the area from Jquery ajax function it is not working.

Finally, I found the solution by creating the function inside the area controller and calling the action method.

But I still don't know why the jQuery ajax function not working for outside area.

If you have a solution please share your view on this comment.
Рекомендации по теме
Комментарии
Автор

The ONLY solution that actually worked for me was to create a new controller, copy all of the methods over and rename the AJAX call. Somethin went awry in visual studio and the compiled version, but I do not know what. I just wanted to post this situation in case it helps someone avoid the hours it took me to debug this issue.
Happy Coding!

spencersullivan