Ver Mensaje Individual
  #12 (permalink)  
Antiguo 23/07/2012, 12:25
Avatar de cristiantorres
cristiantorres
 
Fecha de Ingreso: marzo-2012
Mensajes: 383
Antigüedad: 12 años, 2 meses
Puntos: 61
Respuesta: ASP.NET Problema al intentar modificar un registro

Es un tema viejo, hubieran creado un nuevo tema por si tenían dudas.

Pero bueno contestando un poco la duda que tienen, deberían usar la propiedad IsPostBack así evitan que siempre que se haga el postback se recarguen los datos que cargan en el page load.

Código vb.net:
Ver original
  1. If Not IsPostBack
  2. 'AQUI SU CODIGO        
  3. End If

Código c#:
Ver original
  1. if (!IsPostBack)
  2. {
  3.     //AQUI SU CODIGO    
  4. }

Page.IsPostBack (Propiedad)
__________________
Visita mi Blog C#, vb.net, asp.net, sql, java y mas...
Blog Cristian Torres