asp.net无刷新操作表格(增加,删除行),包括后台如何取值
//插入空白行
function insertRow(){
var table=document.getElementById('TestTable');
var tr=table.insertRow();
var datalength=table.rows.length-1;
var dataIndex=datalength-1;
var TextIDCell=tr.insertCell();
TextIDCell.innerHTML="";
//增加按钮
var BtAddCell=tr.insertCell();
BtAddCell.innerHTML=" ";
//删除按钮
var BtDeleteCell=tr.insertCell();
BtDeleteCell.innerHTML=" ";
setButtonAction();
}