I have an asp.net mvc application. When button is clicked (submit button) I would like to results to be displayed inside some div. I know how to do it. I have some action where I return a partial view. But when button is submitted then I get some multiple objects from db and I would like to display them all in div.
How can I achieve it?
Your action method could serialize and return them as a JSON encoded string:
which could be invoked like this: