two dropdownlist on the same page

Posted by Nikunjkakadiya under ASP.NET on 4/5/2011 | Points: 10 | Views : 1600 | Status : [Member] | Replies : 4
i have two dropdownlist on the same page. one dropdownlist contains city name from the database and other must specify or display the cityarea in it based on the city selected. how can i do it?
please help it is urgent




Responses

Posted by: Lalji_mer on: 4/5/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

show here you will get sample code

http://forums.asp.net/t/1574878.aspx/1
http://stackoverflow.com/questions/3353551/where-and-how-to-load-dropdownlists-used-in-masterpage

LP MER

Nikunjkakadiya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 4/5/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi


Simple u fill your city drop down list on page load . . then on city_SelectIndexChanger fill City area drop down list based on City . .

Best Regard's
Prabhakar

Nikunjkakadiya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nikunjkakadiya on: 4/5/2011 [Member] Starter | Points: 25

Up
0
Down
i have city database and i have bound it with the dropdownlist. now based on the city name i select in this dropdownlist i want the name of all the areas in that city in other dropdownlist. i also have one area database which contains city id as the foreign key. so now reply with your answer.

Nikunjkakadiya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kiranbiliyawala on: 4/23/2011 [Member] Starter | Points: 25

Up
0
Down
I have done everything you want.. For the sample I have attached one zip file containing full code with integrated database.

Enjoy .NET..!!!
Vanish yourself in programming..
 Download source file

HAPPY HACKING AND LOVE .NET

Nikunjkakadiya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response