Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

How do I store information in the database CheckedListBox?

$
0
0
hi.
how do you do?
How do I store information in the database CheckedListBox ?
i am send information table groups on the checkedlistbox and this information are not limit , maybe 10 data or 30 data , but if this information on the checkedlistbox checked equal true and if button sub pushing all information tick true send for table employ. and my code for show on the checkedlistbox is :(this Code is Function)

private void info_chklb_group() {
SqlConnection con = new SqlConnection(connectionString:mycon);

SqlCommand com = new SqlCommand("select group_name,id_group from groups ");
con.Open();
com.Connection = con;
SqlDataReader reader = com.ExecuteReader();
while (reader.Read())
{ mojaz_chklb_groups.Items.Add(reader["group_name"]. ToString());
}
reader.Close();
con.Close();
}


thanks all For corporation .

Viewing all articles
Browse latest Browse all 2703

Trending Articles