Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Specified Cast is not valid
Message
 
 
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:
01575896
Message ID:
01575900
Vues:
40
Solved by using Byte type
 for (int i = 5; i < 8; i++)
         {
            pref_lvl = row.Field<Byte>(String.Format("pref_lvl{0}", i));
Google Search reveals it's a known problem

http://stackoverflow.com/questions/12819408/error-casting-tiny-int-to-int
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