Exemplo n.º 1
0
    private void BindDZYW()
    {
        if (Request["zcid"] != null)
        {
            string zcid = Request["zcid"].ToString();
            U_ZCBU zc2  = new U_ZCBU();
            for (int i = 1; i < 3; i++)
            {
                Repeater repeater1 = this.repeater1.Parent.FindControl("repeater" + i) as Repeater;
                if (repeater1 != null)
                {
                    int     wpkind = i - 1;
                    DataSet ds     = zc2.GetDZYWInfo(zcid, wpkind.ToString());
                    repeater1.DataSource = ds;
                    repeater1.DataBind();

                    if (ds.Tables[0].Rows.Count == 0)
                    {
                        repeater1.Visible = false;
                    }
                }
            }

            zc2.Close();
        }
    }