CountryTable
DataRow drCountryRow1 = dtCountryTable.NewRow();
drCountryRow1["CountryId"] = "1";
drCountryRow1["CountryName"] = "India";
dtCountryTable.Rows.Add(drCountryRow1);
DataRow drCountryRow2 = dtCountryTable.NewRow();
drCountryRow2["CountryId"] = "2";
drCountryRow2["CountryName"] = "Usa";
dtCountryTable.Rows.Add(drCountryRow2);
CityTAble
DataRow drCityRow1 = dtCityTable.NewRow();
drCityRow1["CityId"] = "1";
drCityRow1["CityName"] = "Delhi";
dtCityTable.Rows.Add(drCityRow1);
DataRow drCityRow2 = dtCityTable.NewRow();
drCityRow2["CityId"] = "2";
drCityRow2["CityName"] = "Mumbai";
dtCityTable.Rows.Add(drCityRow2);
DataRow drCityRow3 = dtCityTable.NewRow();
drCityRow3["CityId"] = "3";
drCityRow3["CityName"] = "Goa";
dtCityTable.Rows.Add(drCityRow3);
DataRow drCityRow4 = dtCityTable.NewRow();
drCityRow4["CityId"] = "4";
drCityRow4["CityName"] = "NewYork";
dtCityTable.Rows.Add(drCityRow4);
DataRow drCityRow5 = dtCityTable.NewRow();
drCityRow5["CityId"] = "5";
drCityRow5["CityName"] = "Texas";
dtCityTable.Rows.Add(drCityRow5);
DataRow drCityRow6 = dtCityTable.NewRow();
drCityRow6["CityId"] = "5";
drCityRow6["CityName"] = "LasVegas";
dtCityTable.Rows.Add(drCityRow6);
I have added these datas from datatable and they are displayed in dropdownlists....
ddlCountry.DataSource = CreateCountryTable();
ddlCountry.DataTextField = "CountryName";
ddlCountry.DataValueField = "CountryId";
ddlCountry.DataBind();
but when i select one country then their cities should be displayed in second dropdownlist..How to display multiple datas in 2nd ddllist????