示例#1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            clsSqlServer obj = new clsSqlServer();

            obj.DeleteCustomer(txtCustomerName.Text);
            LoadCustomers();
        }
示例#2
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            // Here the delete logic will go
            clsSqlServer obj = new clsSqlServer();

            obj.DeleteCustomer(txtCustomerName.Text);
            ClearData();     // Clear the selected customer data
            loadCustomers(); // Loading the grid again
        }
示例#3
0
        public void delete(string strCustomerName)
        {
            clsSqlServer objDelete = new clsSqlServer();

            objDelete.DeleteCustomer(strCustomerName);
        }
示例#4
0
        public void DeleteCustomer(string CustomerName)
        {
            clsSqlServer obj = new clsSqlServer();

            obj.DeleteCustomer(CustomerName);
        }