Click here to Skip to main content
15,882,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am doing Cascading DropDownList for Country State and City..

i have save the drop down value in database by writing the code in selected index
change event..

but while fetching the same data on button click using table id ,it display only 1st drop downlist has data(County) data in 2nd and 3rd dropdown..

can anybody please tell ..
Updated 17-Nov-14 21:54pm
Raj@88 18-Nov-14 4:00am    
No One??

1 solution

Share this answer
Raj@88 18-Nov-14 4:32am    
Dinesh ..thanx for reply ..actually i knw dis process...
bt i want to fech data on button click by id ...

i did like dis..

if (Ds.Tables[0].Rows.Count > 0)
DRDCountry.SelectedValue = Ds.Tables[0].Rows[0]["Country"].ToString();
DRDState.SelectedValue = Ds.Tables[0].Rows[0]["State"].ToString();
DRDDistrict.SelectedValue = Ds.Tables[0].Rows[0]["District"].ToString();
DRDTahasil.SelectedValue = Ds.Tables[0].Rows[0]["Tahsil"].ToString();
DRDVillage.SelectedValue = Ds.Tables[0].Rows[0]["Village"].ToString();

but problem is displays on 1st drop down data..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900