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
Bharathi Raja
NA
1.1k
54.5k
invalid attempt to access a field before calling read() c#
Dec 1 2017 12:23 AM
connection.Close();
connection.Open();
cmd = new MySqlCommand("select attend from credit_purchase where date='" + date + "'", connection);
dread = cmd.ExecuteReader();
while (dread.Read())
{
x = dread.GetValue(0).ToString();//this line to error
}
dread.close();
connection.close();
Reply
Answers (
2
)
Alert LowDiskSpace With EmailNotification
how to c# database connect to tally database