//删除
 protected void gvBrand_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     try
     {
         int BrandId = Convert.ToInt32(gvBrand.DataKeys[e.RowIndex].Value);
         bm.DelBrandById(BrandId);
         bindBrand();
     }
     catch (Exception ex)
     {
         lblInfo.Text = "删除失败,出现异常:" + ex.Message;
     }
 }