Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have collection like datatable or dataset or one generic collection is there any way to access it using the javascript at the inline code.
Posted

1 solution

There is no direct way of doing this because DataTable is c# object at server and JavaScript is running on client machine but it doesn't mean u can not do this at all.

following link can help u to achieve ur goal in some way.may not be as perfect as u want.

How To Read a DataSet object in Javascript[^]

Convert ASP.NET DataTable to JSON, to use a DataTable in JavaScript[^]

Accessing hole collection at client side is not very good idea. I think some other logic can simplifies ur work.

All the best.
 
Share this answer
 
Comments
jameschowdaree 22-Jun-12 14:56pm    
thanks for your reply.

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