when i select one value in combox then other values placed in it disappears automatically. I don't know what the problem is i have also checked its value member and display member they both are correct.. I want suggestion please help...
Your question is not clear. I think you place some code in the page load event. When you select a value in the combobox the load event again working and you details are erased. If this is the case place the code in a not postback block.
my question is that when i select one value in combobox then the other values which are binded to combobox disappears automatically as I have placed combobox code in page load event and other than page load event where should i post the code for combobox.
This code i am using on page_load obj.FillComboBox(cmbSupplier, "select * from Suppliers_tbl", "Name", "Supplier_ID"); cmbSupplier.Text = "--Select--"; this code is on combox selected index changed obj.FillComboBox(cmbSupplier, "select * from Suppliers_tbl where Supplier_ID=" + cmbSupplier.SelectedValue, "Name", "Supplier_ID");
Why do you need to fill the combo box in the selected index changed event? That is causing the problem