Hi,
(i'm developing my project in visual basic with webdeveloper2008)
I have my gridview with a insert(inserir) and update(actualizar) and when i click update it returns me this error: "Conversion from strin to integer is not valid" and this points to this code:
If IsNumeric(CInt(CType(.FindControl("lblID"), Label).Text)) Then
If CInt(CType(.FindControl("lblID"), Label).Text) > 0 Then
id = CInt(CType(.FindControl("lblID"), Label).Text)
End If
End If
iCatID = UpdateMarca(n_inventario, n_imobilizado, tipo, modelo, marca, serial_n, local_inst, ano_imobilizado, data_compra, activo, id)
End With
Next
lblResultados.Text = "Actualização realizada com sucesso."
Help Me pliz!!!
MY BEST REGARDS
(i'm developing my project in visual basic with webdeveloper2008)
I have my gridview with a insert(inserir) and update(actualizar) and when i click update it returns me this error: "Conversion from strin to integer is not valid" and this points to this code:
If IsNumeric(CInt(CType(.FindControl("lblID"), Label).Text)) Then
If CInt(CType(.FindControl("lblID"), Label).Text) > 0 Then
id = CInt(CType(.FindControl("lblID"), Label).Text)
End If
End If
iCatID = UpdateMarca(n_inventario, n_imobilizado, tipo, modelo, marca, serial_n, local_inst, ano_imobilizado, data_compra, activo, id)
End With
Next
lblResultados.Text = "Actualização realizada com sucesso."
Help Me pliz!!!
MY BEST REGARDS