Hi,
I have two dropdowns.
I want that the DDL2 gets populated based on the values in DDL1.
How can I achieve that.
This is the way I am populating DDL1
string cmd = "Select * from abc ";
SqlDataAdapter da = new SqlDataAdapter(cmd, connection);
DataSet ds = new DataSet();
da.Fill(ds);
DropDownList1.DataSource = ds;
DropDownList1.DataTextField = "Name";
DropDownList1.DataValueField = "Code";
DropDownList1.DataBind();
DropDownList1.Items.Insert(0, "--Select--");