Do you think it would be a better solution to create dynamic html tables on the server and send back HTML (server would have to generate the html) in response to ajax request or would it be better to send back the JSON and construct the html using jquery/javascript. I generally like to move as much processing to the client as i can but i don’t know what would be considered preferable from a maintenance aspect.
Share
i would almost never send full html from the server via ajax requests. its just so heavy, especially if its going to be a repeated request. check out jquery templates if you haven’t already.
from a maintenance perspective, you could house each the templates in their own partial view and then include them as necessary.