Example #1
0
 protected void BtnBatchDelete_Click(object sender, EventArgs e)
 {
     foreach (string str in this.EgvIncludeFileList.SelectList.ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
     {
         IncludeFile.Delete(DataConverter.CLng(str));
     }
     AdminPage.WriteSuccessMsg("批量删除成功", "IncludeFileManage.aspx");
 }
Example #2
0
        protected void EgvIncludeFileList_RowCommand(object sender, CommandEventArgs e)
        {
            string commandName = e.CommandName;

            if (commandName != null)
            {
                if (!(commandName == "CreateIncludeFile"))
                {
                    if (!(commandName == "DeleteIncludeFile"))
                    {
                        return;
                    }
                }
                else
                {
                    IncludeFile.CreateIncludeFile(DataConverter.CLng(e.CommandArgument));
                    this.EgvIncludeFileList.DataBind();
                    return;
                }
                IncludeFile.Delete(DataConverter.CLng(e.CommandArgument));
                this.EgvIncludeFileList.DataBind();
            }
        }