如何页面中嵌入了ascx插件,当页面参数刷新后,如何刷新控件的数据呢?关键是:调用子控件的 this.baseinfo1.DataBind();

 protected void ASPxCallbackPanel1_Callback(object sender, DevExpress.Web.CallbackEventArgsBase e)
    {
        //刷新控件,非常重要的一步。
        //还是要和ASPxCallbackPanel1配合使用才行
        HttpContext.Current.Session["myUserName"] = e.Parameter;
        this.baseinfo1.DataBind();
    }

猜你喜欢

转载自www.cnblogs.com/qqhfeng/p/12488961.html