当前位置:编程学习 > C#/ASP.NET >>

ajax 不执行ScriptManager.RegisterStartupScript

  string strQuotat = "select * from tempt";
        DataTable tbQuotat = DBHelp.ExecuteDataSet(strConn, strQuotat).Tables[0]; //获取数据
        this.gvquotat.DataSource = tbQuotat;//绑订gridview
        this.gvquotat.DataBind();
        string strQuto = tbQuotat.Rows[gvquotat.PageIndex * gvquotat.PageSize][0].ToString();//获取索引
        ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "allQuotat('" + strQuto + "');", true);//在IFRAME 显示详细信息 --------------------编程问答-------------------- ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "这里写你所有的AJAX代码(把前台写的代码全都写在这里)", true);  试一下吧。
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,