private void btnDeleteSelect_Click(object sender, System.EventArgs e)
        {
            System.Collections.Generic.IList <long> list = new System.Collections.Generic.List <long>();
            string text = this.Page.Request["CheckBoxGroup"];

            if (!string.IsNullOrEmpty(text))
            {
                string[] array = text.Split(new char[]
                {
                    ','
                });
                for (int i = 0; i < array.Length; i++)
                {
                    string value = array[i];
                    list.Add(System.Convert.ToInt64(value));
                }
                if (list.Count > 0)
                {
                    CommentBrowser.DeleteMemberMessages(list);
                }
            }
            else
            {
                this.ShowMessage("请选中要删除的收件", false);
            }
            this.BindData();
        }
Beispiel #2
0
 private void CmessagesList_ItemCommand(object sender, System.Web.UI.WebControls.RepeaterCommandEventArgs e)
 {
     System.Collections.Generic.IList <long> list = new System.Collections.Generic.List <long>();
     if (e.CommandName == "Delete")
     {
         list.Add(System.Convert.ToInt64(e.CommandArgument));
         CommentBrowser.DeleteMemberMessages(list);
         this.BindData();
     }
 }
Beispiel #3
0
 private void CmessagesList_ItemCommand(object sender, RepeaterCommandEventArgs e)
 {
     if (e.CommandName == "Delete")
     {
         IList <long> list = new List <long>();
         list.Add(Convert.ToInt64(e.CommandArgument));
         CommentBrowser.DeleteMemberMessages(list);
         this.BindData();
     }
 }
        private void btnDeleteSelect_Click(object sender, EventArgs e)
        {
            IList <long> list = new List <long>();
            string       text = this.Page.Request["CheckBoxGroup"];

            if (!string.IsNullOrEmpty(text))
            {
                string[] array = text.Split(',');
                foreach (string value in array)
                {
                    list.Add(Convert.ToInt64(value));
                }
                if (list.Count > 0)
                {
                    CommentBrowser.DeleteMemberMessages(list);
                    this.BindData();
                }
            }
            else
            {
                this.ShowMessage("请选中要删除的信息", false, "", 1);
            }
        }