Пример #1
0
 private void BindDate()
 {
     if (Request["id"] != null)
     {
         string  id  = Request["id"].ToString();
         U_ZCBU  zc1 = new U_ZCBU();
         DataSet ds  = zc1.GetOldZCInfoByID(id);
         zc1.Close();
         if (ds.Tables[0].Rows.Count > 0)
         {
             //设置管理员字段
             for (int i = 0; i < arr1.Length; i++)
             {
                 Util.SetControlValue(this.zcbao.Parent.FindControl(arr1[i]), ds.Tables[0].Rows[0][arr1[i]]);
             }
         }
         ds.Dispose();
     }
 }