Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have generated javascript datatable in asp.net. I have brought data using webservice. It is displaying perfectly. I have made the cells editable. But I don't know how to write code for editing. My code is as follows
JavaScript
$('#showData').dataTable().makeEditable({
            "bDestroy": true,
            "sPaginationType": "full_numbers",
            sUpdateURL: "UpdateData.cs"
    "aoColumns": [
                   null,
                   null,
                   null,
                   {
                       indicator: 'Saving Payment Clearance Date...',
                       tooltip: 'Click to edit platforms',
                       type: 'textarea',
                       submit: 'Save changes',
                   }
            ]
        });


I just want to update last column on save button click. Now my question is where to impelement UpdateData.cs? Shall I make a class file? How to pass value and row id in that function? Google shows links about php and .net MVC only.
Please help
Posted
Comments
Sinisa Hajnal 21-Oct-14 2:16am    
What is wrong with MVC example? On click, call controller method via ajax (or any page with WebMethod attribute on its method(s)).
Ami_Modi 21-Oct-14 2:26am    
I am not been able to relate MVC example on Edit Example with my application.
Ami_Modi 21-Oct-14 8:01am    
Can anybody please help
rahulkichur 10-Nov-14 4:26am    
Have used following files:

jquery.dataTables.css

jquery.dataTables.min.js

jquery.dataTables.editable.js

jquery.jeditable.js

jquery.validate.js

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