I need to send some other data, ideally wrapped in a JSON object, down to the client. As well as that however I need to send a Partial view. Now I can only think of two ways:
- Send JSON object and then make another call to load contents of partial view into div.
- Send HTML for Partial View as a property of the JSON object and then load it into div.
How would I go about doing the second option? Is there a command to render partial views into a string? Or is the first approach better?
Cheers, Damien