How to return a MVC View to a $.Ajax JSON POST

Posted by flascuba on Stack Overflow See other posts from Stack Overflow or by flascuba
Published on 2010-04-10T00:14:05Z Indexed on 2010/04/10 0:23 UTC
Read the original article Hit count: 664

Filed under:
|
|

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

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

© Stack Overflow or respective owner

Related posts about mvc

Related posts about AJAX