how to populate 2nd dropdownlist on first dropdown selectedindexchange using data base please any help or code
Thanks in advance, in my code after postback the previus vlaus added in new selected region;
{
ddlDropOf.Enabled =
conn.Open();
dlRegion.DataSource = rd;
dlRegion.DataTextField =
dlRegion.DataBind();
}
conn.Close();
protected
{ ddlPickUp.Enabled =
conn1.Open();
ddlPickUp.DataSource = rd1;
ddlPickUp.DataTextField =
ddlPickUp.DataBind();
conn1.Close();