Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specified Cast is not valid
Message
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01575896
Message ID:
01575900
Views:
45
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
Previous
Reply
Map
View

Click here to load this message in the networking platform