How to return MVC View to $ .Ajax JSON POST

I am sending $ .Ajax POST to the MVC Controller function with parameters and successfully returning JasonResult. I need the current View to be returned (as if it were not a JSON request, and I was returning Viewdata). Viewdata is updated and the page needs to be redrawn.

In short, I want MVC Action to respond correctly to a $ Ajax request and then redraw the page using the updated Viewdata. Hope this makes sense, dropping down with a bad cold.

+3
source share
1 answer

Jason's result is amazing.

, , ajax, jquery, .

, , , html ur, .

+2

Source: https://habr.com/ru/post/1740542/


All Articles