Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/01/2011, 10:20
Avatar de Aquaventus
Aquaventus
 
Fecha de Ingreso: junio-2010
Ubicación: Lima-Peru , En el alba de la naturaleza
Mensajes: 2.105
Antigüedad: 13 años, 10 meses
Puntos: 267
Respuesta: Problema con variable

Mmmm puede que sea por los postback... prueba con esto:
Código c#:
Ver original
  1. protected void Page_Load(object sender, EventArgs e)
  2. {
  3. if(!Page.IsPostBack){
  4. txtNombres.ReadOnly = true;
  5. txtDireccion.ReadOnly = true;
  6. txtTelefono.ReadOnly = true;
  7. txtCelular.ReadOnly = true;
  8. txtEmail.ReadOnly = true;
  9. cboProfesion.Enabled = false;
  10. cboPais.Enabled = false;
  11.  
  12. //botones
  13. btnNuevo.Enabled = true;
  14. btnGrabar.Enabled = false;
  15. btnModificar.Enabled = false;
  16. btnCancelar.Enabled = false;
  17. btnEliminar.Enabled = false;
  18. btnListar.Enabled = true;
  19. btnSalir.Enabled = true;
  20.  
  21. //Grid
  22. dtgDetalle.Enabled = true;
  23. }
  24.  
  25. }
__________________
Internet es tener todo el conocimiento global a tu disposición.
Desarrollo de Software - Ejemplos .Net