Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I 3 DropDownList Country,State, City
>Country Bind when PageLoad
>State Bind on Country SelectIndexChange event
>City Bind on State SelectIndexChange event

But when i Edit data And want only state OR city change so they no display list, so
I want to change on state or city of selected country or state

i hope u understand
//all Bind From database
Posted
Comments
Not clear. Can you explain more?
[no name] 5-Mar-15 1:21am    
Question is not clear.Do you wanted to display selected country state in next dropdown?
Karmesh_Madhavi 5-Mar-15 3:37am    
my question when we go to editing data,
following two are not solution, but i solve it my self,

1 solution

When Data editing ,
1)Select data from ds/dt
2)ReBind dropdown by selected item text,
Ex.
[select S.stateid ,S.state FROM state AS S INNER JOIN country AS C on S.countryid=C.countryid where c.countryname= 'CountryName' ORDER BY S.state]
3)set SelectedItem of ds/dt.
 
Share this answer
 

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