Get Direct HTML string for Server Side Control - Useful for Ajax

added by ashishsarda99
11/4/2010 6:34:32 AM

0 Kicks, 70 Views

How to get rendered HTML of any control for Ajax operations? In ajax on client, what exactly we do is the simple manipulation of strings. Mainly we can use HTML strings and put it as innerHTML in desired tag (i.e. div,span,td, etc…). Assume following sequence of operations 1. Send an Ajax request from client to server. 2. On server side we are binding data table to grid 3. Convert the grid into HTML string and send it back to client side. 4. On client side put that string as an innerHTML of desired tag.


0 comments