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
Venkatesh Pettem
NA
343
9.6k
Gridview Contamination
May 21 2017 3:23 AM
how to get checkboxlist checked data in gridview when we click on edit usin sqldatabase
void check_bind()
{
string intersts = "";
SqlCommand cmd = new SqlCommand("Select hobbies from Task ", cn);
SqlDataReader dr;
cn.Open();
dr = cmd.ExecuteReader();
if (dr.Read())
{
intersts = dr["hobbies"].ToString();
}
cn.Close();
string[] arr = intersts.Split(',');
foreach (ListItem item in this.CheckBoxList1.Items)
{
foreach (string s in arr)
{
if (item.Text == s)
{
CheckBoxList1.SelectedValue = item.Text;
item.Selected = true;
}
GridView1.DataBind();
}
}
}
Reply
Answers (
2
)
Regarding NPOI.DLL
Custom page records using jquery,Json