示例#1
0
    protected void delete_Click(object sender, EventArgs e)
    {
        int id = Convert.ToInt32(((LinkButton)sender).CommandArgument);

        Maticsoft.BLL.customer bll = new Maticsoft.BLL.customer();
        if (bll.Delete(id))
        {
            Maticsoft.Common.MessageBox.ShowAndRedirect(Page, "删除成功!", "get_customer.aspx");
        }
        else
        {
            Maticsoft.Common.MessageBox.Show(Page, "删除失败!");
        }
    }