AjaxPro 和 JS的问题

来源:百度知道 编辑:UC知道 时间:2024/05/24 17:05:51
提交后,数据写入数据库。
在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.getEle

观望学习中

添加上刷新的代码,显示!

应该是没有返回值
ajaxpro使用小案例
http://blog.csdn.net/cnming/archive/2008/11/08/3257234.aspx
看自己是否漏掉了什么

还有,ajaxpro不稳定的,经常失效

在CS中重写了ICallbackEventHandler 成员吗?
public string GetCallbackResult()
{
return _callbackResult;
}

public void RaiseCallbackEvent(string eventArgument)
{
_callbackResult = response;
}

if (response.value != null)

js有这样判断变量为空的语句么?又不是c#

if (typeof(response.value) != 'undefine')