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

            obj.DeleteCustomer(txtCustomerName.Text);
            LoadCustomers();
        }
Exemple #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
        }
Exemple #3
0
        public void delete(string strCustomerName)
        {
            clsSqlServer objDelete = new clsSqlServer();

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

            obj.DeleteCustomer(CustomerName);
        }