Click here to Skip to main content
15,905,323 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi all,

I hava a gridview in my page. Through xmlposting im getting dataset from another page. Now I want to assign that dataset to gridview. Generally in the backend we used to write the below functions:

gridview.Datasource=ds;
gridview.DataBind();

But through xmlposting im getting the dataset in javascript. And I want to assign that dataset to gridview in javascript. So please tell me is there any bind function that we can use in javascript or any other way.

Thanks in advance.
Posted

1 solution

You can do this sort of thing with ASP.NET 4.0
http://msdn.microsoft.com/en-us/magazine/ee309508.aspx[^]

If you're not using 4.0 then you'll need to do it manually. Getting a JSON object and traversing it and creating DOM elements isn't difficult. Another method would be to use XML and have an XSLT to form the HTML output
 
Share this answer
 

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