
29/03/2005, 09:16
|
 | | | Fecha de Ingreso: noviembre-2004
Mensajes: 2.344
Antigüedad: 20 años, 3 meses Puntos: 8 | |
Prueba a poner:
Asegurate de que:
e.Item.Cells(2).Controls(0)
es un textbox
y asegurate de que (si sí lo es) en dicho textbox estás escribiendo un número, puedes hacerlo ejecutando paso a paso, o haciendo esto:
Dim iddeinventario As Integer
try
CType(e.Item.Cells(2).Controls(0), TextBox)
try
iddeinventario= CType(e.Item.Cells(2).Controls(0), TextBox).Text
Catch ex2 As Exception
REsponse.write("No has introducido un número en el campo")
end try
Catch ex As Exception
Response.write("Eso no es un textbox")
end try |