private void btnDelete_Click(object sender, EventArgs e) { clsSqlServer obj = new clsSqlServer(); obj.DeleteCustomer(txtCustomerName.Text); LoadCustomers(); }
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 }
public void delete(string strCustomerName) { clsSqlServer objDelete = new clsSqlServer(); objDelete.DeleteCustomer(strCustomerName); }
public void DeleteCustomer(string CustomerName) { clsSqlServer obj = new clsSqlServer(); obj.DeleteCustomer(CustomerName); }