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
Kobinath Ram
NA
130
0
Data in not displayed on checkbox in c#.net sqlserver
Apr 21 2019 10:09 AM
I am trying to display the values from database. The textbox values are displayed successfully but checkbox values are not displayed, and it shows the error. i attached the error on screenshot image below
sql =
"select * from repair where repairid = '"
+ repairid +
"'"
;
SqlCommand cmd =
new
SqlCommand(sql, con);
SqlDataReader dread;
con.Open();
dread = cmd.ExecuteReader();
while
(dread.Read())
{
checkBox7.CheckState = dread[6].ToString();
}
Reply
Answers (
6
)
Can we use Multiple Template Tags within repeater?
Want to select SQL database using Visual studio c#.net