Working sample for .net c#?
Working sample for .net c#?
Hi I've searched around the forum and google, and have a hard time finding a tutorial of how to make the datatable to work with .net c# + mysql.
Does any one have a working sample or a tutorial i can try out?
The ones i've tried on the forum doesn't work for some reason..
Does any one have a working sample or a tutorial i can try out?
The ones i've tried on the forum doesn't work for some reason..
This discussion has been closed.
Replies
Allan
Look at my post: http://datatables.net/forums/comments.php?DiscussionID=4688&page=1#Item_4
That was an example that I used for a question earlier, but you can adapt it so as to retrieve a datatable from sql and then build up a string with containing the HMTL for that table and injecting it into the innerhtml of a div tag.
Use ClientScript.RegisterStartupScript to inject the javascript/jquery needed to initialize the jeditable table before you inject the html into the div tag.
When you edit a row, it will post back a comma seperated string with all the info for that row with which you can do all the serverside processing you want. Use JSON to update the values of that row when you are done.
Kind regards
Ebbs
bikitha.