本帖最后由 yingziwode 于 2009-07-23 10:29:20 编辑

解决方案 »

  1.   

    BindToDL_Default_Sale方法啥时候执行
      

  2.   

    虽然代码看不懂,但是意见跟楼上一样
    在Page_Load里写这么句,看看结果如何if(!IsPostBack)
    {
      BindToDL_Default_Sale();
    }
      

  3.   

    加了这句吗? protected void Page_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                   BindToDL_Default_Sale();
                }
            }如果加了,再检查一下,你是否已经取到了数据?
      

  4.   

    bll.BindList(this.DataList1,8)...建议返回数据集的方法,this.DataList1.datasource=bll.BindList(..)你可以count一下你的数据集,看看有多少行