用了AJAXPANEL,也用了AJAX.为什么页面还是照样很闪
所有的TABLE放在AJAXPANEL里面,使用AJAX,JS调用后台的AJAX公共方法后,页面开始闪了...
如果不用AJAX的这个方法,倒不闪了..如何做到不闪,而又实现此功能.

解决方案 »

  1.   

    能贴出部分代码吗,感觉不应该是ajaxpanel的问题。
      

  2.   


     protected void Page_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                    //bindInfo();
                    Ajax.Utility.RegisterTypeForAjax(typeof(gFlash));
                }
            }
            [Ajax.AjaxMethod]
            public string bindInfo(string name)
            {
                string introduce = "";
                DataTable dt = gInfo.getInfoTable(1, " Where englishName='" + name + "'", "ID", 1);
                if (dt != null)
                {
                    if (dt.Rows.Count > 0)
                    {
                        introduce = dt.Rows[0]["introduce"].ToString();
                    }
                }
                return introduce;
            }js中使用:  intro.innerText = gFlash.bindInfo(arr[i]).value;   
      

  3.   

    AJAXPANEL的面积太大了吧...就会"很闪"的