I am working on updating an existing ASP.NET server-side application using VS2008 and DOT-NET 3.5 Framework. I come from a primarily VB/VB.NET/SQL background.
We have added a third-party custom control to the application.
I try assigning the .VALUE property (type decimal) to a variable of type decimal and I get this error:
"Cannot implicitly convert type 'object' to 'decimal'. An explicit conversion exists (are you missing a cast?)"
That is the exact text from the error. (Its aparently recoginizing the control.value as an 'object' and not a 'decimal' as it was intended.)
So I then try going a cast but its returning a different error saying "'Decimal' is not recognized"
How does one do casting or datatype conversion (or both) in C#?
View Complete Post