I am trying to create a search result page with asp.net and jQuery. It has to work in an AJAX manner. What I want is that I send the page number to server via an AJAX call and the server can return an html block so that I can attach this html block to an area in the page in the callback after the AJAX call.
But I don't know how to assemble the html block on the server side. Is there a good way or some kind of engine to achieve this ? Or should I just hard-code it like:
<table><tr><td>My result</td></tr> </table>
and return this text to client?