在asp.net中编辑javascript数据表 [英] Editing javascript datatable in asp.net
问题描述
我在asp.net中生成了javascript数据表。我使用webservice引入了数据。它显示得很完美。我让细胞可以编辑。但我不知道如何编写代码进行编辑。我的代码如下
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
$('#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',
}
]
});
我只想更新保存按钮点击的最后一栏。现在我的问题是在哪里阻止UpdateData.cs?我要制作一个类文件吗?如何在该函数中传递值和行id? Google仅显示有关php和.net MVC的链接。
请帮助
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
推荐答案
(' #showData')。dataTable()。makeEditable({
< span class =code-string> bDestroy: true ,
sPaginationType: full_numbers,
sUpdateURL: UpdateData.cs
aoColumns:[
null ,
null ,
null ,
{
indic ator:' 保存付款清算日期......',
工具提示: 点击编辑平台,
类型:' textarea',
submit:' 保存更改',
}
]
});
('#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', } ] });
我只是想要更新保存按钮单击的最后一列。现在我的问题是在哪里阻止UpdateData.cs?我要制作一个类文件吗?如何在该函数中传递值和行id? Google仅显示有关php和.net MVC的链接。
请帮助
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
这篇关于在asp.net中编辑javascript数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!