Question

I am working on a MVC 4 project.

What I want is that when user clicks on a button or a checkbox whatever on a view A, this calls a javascript function, the function in the view A passes some data to a controller, and then the controller opens a view B, when the user does something on view B and clicks a OK button, View B passes data to view A and View B closes.

Is is possible to achieve that? If yes, how to do it?

Thank you very much.

Was it helpful?

Solution

If I understand you correctly, its definitely possible. You can use JQuery async calls to your MVC controller and have it return a partial view. You can use a DIV to house partial-view A and partial-view B, clearing the DIVs contents before adding the HTML from your most recent result.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top