protected void AppendLevelText(EformExtendedCheckBoxList ProcSubSiteLevel, EformTextBox ProcSubSite)
 {
     if (!string.IsNullOrEmpty(ProcSubSiteLevel.Value))
     {
         ProcSubSite.Value = "Level " + ProcSubSiteLevel.Value;
     }
 }
Example #2
0
 protected void RandomChklistSelects(EformExtendedCheckBoxList statusNotes)
 {
     if (!Page.IsPostBack && !string.IsNullOrEmpty(statusNotes.Value))
     {
         string   value  = statusNotes.Value.Replace("Level ", "");
         string[] values = value.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
         foreach (ListItem item in statusNotes.Items)
         {
             for (int i = 0; i < values.Length; i++)
             {
                 if (!string.IsNullOrEmpty(item.Value))
                 {
                     if (values[i] == item.Value)
                     {
                         item.Selected = true;
                         break;
                     }
                     else
                     {
                         item.Selected = false;
                     }
                 }
             }
         }
     }
 }
 protected void HideOtherValue(EformExtendedCheckBoxList SubSiteLevel)
 {
     foreach (ListItem item in SubSiteLevel.Items)
     {
         if (item.Value == "")
         {
             item.Attributes.CssStyle.Add("display", "none");
             item.Enabled = false;
         }
     }
 }