Tema: ayuda
Ver Mensaje Individual
  #9 (permalink)  
Antiguo 29/03/2005, 12:49
popopo
 
Fecha de Ingreso: septiembre-2004
Mensajes: 407
Antigüedad: 20 años, 5 meses
Puntos: 1
Mensaje

hace lo siguiente
Dim iddesolicitud as string
dim txtid as new textbox
txtid=CType(e.Item.Cells(2).Controls(0), TextBox)

if txtid.text=""
idsolicitud=""
else
iddesolicitud =(CType(e.Item.Cells(2).Controls(0), TextBox).Text)
endif
cuando haces el insert pregunta si idsolicitus<>"" si es asi pasale Val(iddesolicitud)