protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     if (Session["ZT_ADMIN"] == null)
     {
         Response.Redirect("Login.aspx");
     }
     else
     {
         if (!Communal.CheckQx("CompanyInfoDelete.aspx"))
         {
             Response.Redirect("RightsWarn.aspx");
         }
         else
         {
             //删除数据库的信息
             Label ll = (Label)this.GridView1.Rows[e.RowIndex].Cells[1].FindControl("lblInfoID");
             int InfoID = Convert.ToInt32(ll.Text);
             WebProject.BLL.BaseData.ZT_COM_CompanyInfo bll_CompanyInfo = new WebProject.BLL.BaseData.ZT_COM_CompanyInfo();
             LogManage.WriteLog(Request.UserHostAddress, "公司信息管理", "删除公司信息", "成功", "信息标题:" + bll_CompanyInfo.GetModel(InfoID).Title + ", 操作人:" + SessionUtil.GetAdminSession().AdminNo);
             bll_CompanyInfo.Delete(InfoID);
             //删除文件夹的图片
             Label l2 = (Label)this.GridView1.Rows[e.RowIndex].Cells[0].FindControl("lblImgUrl");
             if (l2.Text != "onlinenone.jpg")
             {
                 System.IO.File.Delete(Server.MapPath("IMG/" + l2.Text));
             }
             //重新加载信息
             ShowData();
         }
     }
 }