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

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) ..no data in 2nd and 3rd dropdown..

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

1 solution

 
Share this answer
 
Comments
Raj@88 18-Nov-14 4:32am    
Hi..
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 ..it 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