/// <summary> /// Loads top level entry list /// </summary> /// <history> /// [tamttt] 20/10/2004 Created /// </history> private void BindListInfo() { string listName = SelectedText.Substring(SelectedText.IndexOf(":") + 1); string parent = SelectedText.Replace(listName, "").TrimEnd(':'); this.lblListParent.Text = parent; this.lblListName.Text = listName; this.rowListParent.Visible = (selListInfo.Parent.Length > 0); //(parent.Length > 0) if (!SystemList) { this.cmdDeleteList.Visible = true; ClientAPI.AddButtonConfirm(cmdDeleteList, Localization.GetString("DeleteItem")); } else { this.cmdDeleteList.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(SoftId)) { Visible1 = ""; List <Soft> list = loginService.AvailableSofts; string softids = string.Empty; if (list != null) { list.ForEach(soft => { softids += soft.ID + ","; }); softids = softids.TrimEnd(','); } } title = string.IsNullOrEmpty(SelectedText) ? "选择标签" : SelectedText.Length > 9 ? SelectedText.Substring(0, 9) + "..." : SelectedText; if (!IsPostBack) { hidcheckedpid.Value = ParentId; hidcheckedText.Value = SelectedText; hidcheckedValue.Value = SelectedValue; } }