TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Premkumar Ekkaladevi
NA
3
0
Specified cast not valid.
Aug 19 2013 4:17 PM
I am using .NET Framework 4.0 and recently came across a strange problem.
Cast to decimal (decimal)row["ID"] fails with "Specified cast not valid" where row["ID"] is of datatype Int64 and a value of 38990 :
However if i use Convert.ToDecimal(row["ID"]) it works.
Why is the behaviour not consistent - am i missing something here ?
Regards,
Prem
Reply
Answers (
2
)
how to multiply the value in two textboxes.
how to give the textbox value in text as 14.5/100 as default