Пример #1
0
 private void BindChildDropBox(string Parent)
 {
     try
     {
         drpSubMenu.Items.Clear();
         objMenuSchema.Parentid = Convert.ToInt32(Parent);
         ds = ObjmenuBL.GetChildList(objMenuSchema);
         dt = ds.Tables[0];
         if (dt.Rows.Count > 0)
         {
             drpSubMenu.DataSource = dt.DefaultView;
             drpSubMenu.DataBind();
             drpSubMenu.Items.Insert(0, new ListItem("Select", "0"));
             drpSubMenu.SelectedValue = "0";
             drpSubMenu.Visible       = true;
         }
         else
         {
             drpSubMenu.Visible = false;
         }
     }
     catch (Exception ee)
     { throw ee; }
 }