Example #1
0
 private void BindParentDropBox()
 {
     try
     {
         ds = ObjmenuBL.GetParentList();
         dt = ds.Tables[0];
         drpMenu.DataSource = dt.DefaultView;
         drpMenu.DataBind();
         drpMenu.Items.Insert(0, new ListItem("Select", "0"));
         drpMenu.SelectedValue = "0";
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }