提交后,数据写入数据库。
在CS文件中返回最新一条数据的DataTable给get_Result_CallBack
function get_Result_CallBack(response)
{
    if (response.value != null)
    {
z = 0;
var ds = response.value;
if(ds != null && typeof(ds) == "object" && ds.Rows != null)
{
            arrCellText[0] = ds.Rows[0].Message+"   "+ds.Rows[0].UpdateDate  ;
            arrCellText[1] = ds.Rows[0].Name ;
            arrCellText[2] = "<a href='"+ds.Rows[0].ID+"'>回复</a>" ;//这里暂时先这样写着
            arrCellText[3] = "<a href='"+ds.Rows[0].ID+"'>删除</a>";//这里暂时先这样写着
            var resulttable= "tab"+ds.Rows[0].Img_ID;//这个是DataList中的table,我给table的命名是tab加上该条数据的ID
            var resulttr= "tr"+ds.Rows[0].Img_ID;
            _tab = document.getElementById(resulttable) ;
            _tr = document.getElementById(resulttr) ;
    createRowCell(_tab, _tr, arrCellText) ;
}
    
    }
    return
}function createRowCell(tab, tr, arrCellText)
{  
    trNew = tab.insertRow(0) ;
    for(var i=0; i<tr.cells.length; i++)
    {
        //alert(arrCellText[i]);这里可以弹出我每个字段的值。
        var tdNew = trNew.insertCell() ;
        var tnNew = document.createTextNode(arrCellText[i]) ;
        tdNew.appendChild(tnNew) ;
    }
}
问题是 相应的这个Table没有任何反应。页面也无任何反应,没有刷新。自己手动刷新一下,数据就会显示出来。
我代码哪里有问题,还是逻辑上不对?希望大家多指教