Sara,
In the code you defined the connection "conn", and you opened the connection in
page_load
event, so that no need to open it again in
DropDownList1_SelectedIndexChanged1
. So you can remove this following code from DropDownList1_SelectedIndexChanged1 event
conn = new SqlConnection("cn");
conn.Open()
and, the above code is not a best practice to bind grid in the event "DropDownList1_SelectedIndexChanged1" use "selectedvaluechanged" or "selectedindexchanged" event
If you want to assign values to dropdownlist box
DropDownList1.DataSource = cmd.ExecuteReader();
uiCboIntType.DisplayMember = "Employee_Name";
uiCboIntType.ValueMember = "Employee_Id";
Now you can write code in
DropDownList1_selectedvaluechanged
I think it is helpful to you
Sridhar Patnayak