You can't, jQuery is used for client side scripting on the browser, and cannot access a DataTable.. javascript runs in the clients browser, your DataSet/DataTable is exposed by the server. There's disconnected space between them.
However, you can connect Javascript to a webservice, and inside the webservice you can return data from your DataSet/DataTable to the javascript method.
You can't, jQuery is used for client side scripting on the browser, and cannot access a DataTable.. javascript runs in the clients browser, your DataSet/DataTable is exposed by the server. There's disconnected space between them.
However, you can connect Javascript to a webservice, and inside the webservice you can return data from your DataSet/DataTable to the javascript method.
i agree with Vinz comments. But u can acheive all the gridview ,datagrid... functinality at client side. What u have to do is get the dataset /datatable value on clientside by service or wrriting that in hiddenfiled . A simple example is convert ur datatable
value to json and write that to a hiddenfield on pageload (link :: http://simplyasp.blogspot.in/2013/01/convert-datatable-to-json-c.html ) later their are plugin like jqgrid ( link :: http://www.trirand.com/blog/jqgrid/jqgrid.html ) Manipulate value and enjoy
for easy manipulation javascript linq (called so ) are avillable jlinq(link :: http://hugoware.net/projects/jlinq ). most important is performance issue its load so fast compared to nomal asp grid , not only load all operation because its load from clientside.
If u find this post helpful.Please mark as answer.
WardahKafeel
Member
1 Points
2 Posts
Jquery Datatable with asp.net webForms
Jan 25, 2013 06:22 AM|LINK
i was wondering if we can use JQuery datatables with Webforms like we do in MVC?
if yes then can anyone give me some useful links cuz i have googled it and cant find proper answers...
thanks in advance!
vinz
All-Star
127087 Points
17946 Posts
MVP
Re: Jquery Datatable with asp.net webForms
Jan 25, 2013 06:57 AM|LINK
You can't, jQuery is used for client side scripting on the browser, and cannot access a DataTable.. javascript runs in the clients browser, your DataSet/DataTable is exposed by the server. There's disconnected space between them.
However, you can connect Javascript to a webservice, and inside the webservice you can return data from your DataSet/DataTable to the javascript method.
MessageBox Controls for WebForms | Blog | Twitter | Linkedin
arunoyour
Participant
1089 Points
261 Posts
Re: Jquery Datatable with asp.net webForms
Jan 25, 2013 07:15 AM|LINK
i agree with Vinz comments. But u can acheive all the gridview ,datagrid... functinality at client side. What u have to do is get the dataset /datatable value on clientside by service or wrriting that in hiddenfiled . A simple example is convert ur datatable value to json and write that to a hiddenfield on pageload (link :: http://simplyasp.blogspot.in/2013/01/convert-datatable-to-json-c.html ) later their are plugin like jqgrid ( link :: http://www.trirand.com/blog/jqgrid/jqgrid.html ) Manipulate value and enjoy for easy manipulation javascript linq (called so ) are avillable jlinq(link :: http://hugoware.net/projects/jlinq ). most important is performance issue its load so fast compared to nomal asp grid , not only load all operation because its load from clientside.
Visit :: www.simplyasp.blogspot.com
Stay tune...Keep alive