e se invece hai un valore DBNull nel campo che vuoi convertire in stringa?Originariamente inviato da smt
non vorrei che fosse la dll bacata!codice:<snip> [thread 0x514] Unhandled exception generated: (0x00c5c15c) <System.InvalidCastEx ception> _className=<null> _exceptionMethod=<null> _exceptionMethodString=<null> _message=(0x00c6106c) "Specified cast is not valid." _innerException=<null> _helpURL=<null> _stackTrace=(0x00c610b8) array with dims=[36] _stackTraceString=<null> _remoteStackTraceString=<null> _remoteStackIndex=0x00000000 _HResult=0x80004002 _source=<null> _xptrs=0x00000000 _xcode=0xe0434f4d [002e] pop esi (cordbg)![]()

Rispondi quotando