I am trying to bind data with 2 dropdowns.
I am have 2 tables created in SQL Server 2008:
1) country:
country_id (primary key)
country_name
2) state:
state_id(primary key)
state_name
country_id(foreign_key)
Now I tried to bind the data with 2 dropdown list ddp1 and ddp2, such that when I select the country from first dropdown (ddp1) then the list of states corresponding to that country should come in the second dropdown(ddp2).
Can some one please help me to achieve this?
Thanks .