Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specified cast is not valid
Message
 
 
To
01/06/2010 12:27:45
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01466885
Message ID:
01466895
Views:
36
>>Try getting a Value and also compare it first with DbNull.Value
>>
>
>Hi Naomi,
>
>I'm not sure what you mean by the above. The problem I am having is that a default value is not getting populated when it should be by the framework I am using (MM.NET). I assume this is due to me having forgotten to set something as it works elsewhere.

My suggestion was to overcome the error. In order for the cast to be valid, you need to use Value property of the Ds.Row and also you need to make sure it's not null.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform