Exemplo n.º 1
0
        protected void ImageButton1_Click(object sender, EventArgs e)
        {
            ImageButton btu  = sender as ImageButton;
            int         BSID = Convert.ToInt32(btu.CommandArgument);

            if (BSCategoryDAL.deleteByBSID(BSID) > 0)
            {
                Alert("删除成功");
                ShowDate();
            }
            else
            {
                Alert("删除失败");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 根据id删除
 /// </summary>
 /// <param name="BSID"></param>
 /// <returns></returns>
 public static int deleteByBSID(int BSID)
 {
     return(BSCategoryDAL.deleteByBSID(BSID));
 }