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
Tharake Gunatilake
NA
53
73.5k
Convert to float when using a reader
Apr 13 2011 4:55 AM
2 commented lines give errors..plz help me to correct it...im a biginner...
if (reader.Read())
{
BE.InterestRate objir = new BE.InterestRate();
//objir.percentage = reader.GetFloat(Convert.ToString("percentage"));
//objir.percentage =float.Parse(Convert.ToString(reader.GetOrdinal("percentage")));
objir.Interest_Id = reader.GetInt32(reader.GetOrdinal("Interest_Id"));
objIR.Add(objir);
}
Reply
Answers (
8
)
How to make Dllimport correctly in c#?
Data fetching by using adapter