how to return a dynamic html in asp.net

mlaen

New Member
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 ajax call and the server can return a html block so that I can attached this html block to a area in the page in the call back 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 \[code\]<table><tr><td>My result</td></tr> </table>\[/code\]and return this text to client?Thanks in advance for your answers.
 
Back
Top