Click here to Skip to main content
15,905,785 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to find the sample/component to open and retrieve a Syste,.Data.DataTable using JavaScript. Appreciate if you can help.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Aug-15 12:38pm    
Who told you that programming is finding samples or components? Anyway, sorry, this is not a question, and this forum is not a software-finding service.
Besides, you are using ASP.NET. The most adequate way of using databases in ASP.NET is using ADO.NET.
—SA

1 solution

Why, why JavaScript? You are using ASP.NET, so use ADO.NET:
http://en.wikipedia.org/wiki/ADO.NET[^],
https://msdn.microsoft.com/en-us/library/aa286484.aspx[^].

—SA
 
Share this answer
 
Comments
s yu 26-Aug-15 14:17pm    
SA: I have no problem to retrieve DataTable using ADO.Net. For a specific application, which blends both ASP.Net and JavaScript/HTML, an object w/ different attribute values is obtained from a JS function. Based on the values obtained, I need to retrieve the related values from some DataTables, and then post the results on a popup window. Now, I am considering creating session/hidden variable to hold the values from JS function. Then, create an event to retrieve the DataTables based on session variable. Thanks anyway.
Sergey Alexandrovich Kryukov 26-Aug-15 15:05pm    
I'm not sure you really need that. But then you have to explain the meaning of DataTable in JavaScript. :-)
Whatever you say, it has nothing to do with .NET DataTable, or any other .NET objects.
—SA

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