示例#1
0
        protected void GridViewcustomer_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int CustomerId = Convert.ToInt32(e.CommandArgument);

            if (e.CommandName == "dlt")
            {
                string          sql     = "delete from customer_tbl where CustomerId='" + CustomerId + "'";
                CustomerDetails objcust = new CustomerDetails();
                int             i       = objcust.DeleteCustomer(sql);
                if (i > 0)
                {
                    Bind();
                }
            }
        }