Click here to Skip to main content
15,915,093 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

Can you please show how to fill a gridview using asp.net-jquery-ajax-json-ashx? ie. the httphandler will query the database and pass the data to client, where jquery will then fill the gridview.

Thanks
bcs
kochi
Posted
Updated 21-May-12 1:28am
v2

 
Share this answer
 
A GridView is rendered on the client as an HTML table with the necessary rows and grids. If the data were to come has XML you could easily create a XSLT to transform it into a table. Otherwise, if the data is returned as a JSON object you will need to iterate through it and create the elements as necessary. Not a difficult task with JQuery
 
Share this answer
 
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900