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
Nel
NA
716
1.1m
When casting from a number, the value must be a number less than infinity
Aug 8 2011 8:54 AM
When running the code below I got error when casting from a number, the value must be a number less than infinity:
using (SqlDataReader reader = command.ExecuteReader(CommandBehavior.SingleRow))
{
if (reader.Read())
{
dokument = new Dokument(reader.GetInt32(0),
reader.GetDateTime(1),
reader.GetString(2),
reader.GetString(3),
reader.GetDecimal(4),
reader.GetString(5)[0],
reader.GetDecimal(6),
reader.GetDecimal(7),
reader.GetInt32(8),
reader.GetString(9),
reader.GetString(10));
}
}
Can anybody help me please where I go wrong?
Thanks
Reply
Answers (
30
)
How to change color of textbox in C# GUI?
Sending/Receiving PictureBox Image in C# To/From Microsoft Access database