Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/03/2011, 11:33
Avatar de GzaPro
GzaPro
 
Fecha de Ingreso: marzo-2011
Ubicación: San Nicolas de los Arroyos
Mensajes: 5
Antigüedad: 13 años, 1 mes
Puntos: 0
Respuesta: Error ABM C# "Referencia al objeto no establecida como instancia de un obj

Hola gente, perdon tienen razon.

El error me sale en esta parte, en la linea persona.AgregarCliente(txtNombre.Text,.....,FechaA ctual); me la marca toda de amarillo

Código C:
Ver original
  1. public void GuardarCliente()
  2.         {
  3.             if (txtNombre.Text.Trim().Length > 0)
  4.  
  5.             {
  6.                 clientes persona = new clientes();
  7.                
  8.                 if (temp == 0)
  9.                 {
  10.                     persona.AgregarCliente(txtNombre.Text, txtApellido.Text, txtCuil.Text, txtDireccion.Text, Convert.ToInt32(cboLocalidad.SelectedValue.ToString()), txtTelefono.Text, txtCelular.Text, txtEmail.Text, FechaActual);
  11.                 }
  12.                 else
  13.                 {
  14.                     persona.ModificarCliente(Convert.ToInt32(ID), txtNombre.Text, txtApellido.Text, txtCuil.Text, txtDireccion.Text, Convert.ToInt32(cboLocalidad.SelectedValue.ToString()), txtTelefono.Text, txtCelular.Text, txtEmail.Text, FechaActual);
  15.                 }
  16.             }
  17.         }

Gracias de ante mano.

Última edición por GzaPro; 10/03/2011 a las 11:42