Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object cannot be cast from DBNull to other type
Message
 
 
À
24/05/2013 16:37:47
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01574643
Message ID:
01574664
Vues:
33
>Depending on the actual type stored in the column, you could try
>
start_time = row.Field<DateTime?>("start_time") ?? DTSqlMinDate;
>It won't work if you have a string you need converted to a DateTime though.

Let me try, thanks a lot. The start_time is datetime in the database.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform