Exemplo n.º 1
0
 protected void BtnBatchCreateIncludeFile_Click(object sender, EventArgs e)
 {
     foreach (string str in this.EgvIncludeFileList.SelectList.ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
     {
         IncludeFile.CreateIncludeFile(DataConverter.CLng(str));
     }
     AdminPage.WriteSuccessMsg("批量刷新成功", "IncludeFileManage.aspx");
 }
Exemplo n.º 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();
            }
        }