Hi all,
I have a two DropDownList with multiple CheckBoxes. One for state and other for city. I would like result like when I select multiple CheckBox from state DropDownList. then city dropDownList show both state city with Multiple CheckBox.
Loading

selva kumarPosted Jul 24, 2013, 8:44 AM
If(checkbox1.checked)
{
SqlCommand Cd = new SqlCommand("Select state from table name", Con);
SqlDataReader dr = Cd.ExecuteReader();
while (dr.Read())
{
dropdownlist1.Items.Add(dr["state"].ToString());
}
SqlCommand Cd1 = new SqlCommand("Select city from table name", Con);
SqlDataReader dr1 = Cd1.ExecuteReader();
while (dr1.Read())
{
dropdownlist2.Items.Add(dr["city"].ToString());
}
}
selva kumarPosted Jul 24, 2013, 7:21 AM
Iftikar HussainPosted Jul 23, 2013, 11:59 AM
Please refer the below link
http://www.codeproject.com/Articles/42247/ASP-NET-Multiple-Selection-DropDownList-with-AJAX
http://www.codeproject.com/Articles/66572/A-Multiple-Selection-DropDownList-a-CheckBoxList-I
Regards,
Iftikar
Rohatash KumarPosted Jul 23, 2013, 9:15 AM
But is not answer of my problem. Please read it and try again.
Ruchi HPosted Jul 23, 2013, 9:11 AM