Last post Dec 13, 2011 07:44 AM by kaushik_tatva
Dec 13, 2011 07:32 AM|kumaresank|LINK
i have two drop down list one is country another one is state
i want to select country automaticly populate state.
pls help me
Dec 13, 2011 07:38 AM|kamalchhabra|LINK
it's very easy
first fill the dropdownlist1 for country
after select show states
that is happen on the DropDownList1_SelectedIndexChanged
on this selected value of state can fill
Dec 13, 2011 07:39 AM|kedarrkulkarni|LINK
if u r using AjaxControl toolkit...
with the help of jQuery... read this good article by Mike
if u dont bother of postback... set SelectedIndexchanged event on first dropdown... and set its AutoPostback property to true
in the SelectedIndexchanged event write code to populate second dropdown...
hope this helps...
Dec 13, 2011 07:44 AM|kaushik_tatva|LINK
you can have different solution:
you can get the Whole array and as per the country selection ....please get the appropriate state for that country from that array.....this will be easy coding
1) use Jquery
2) create Webmethod to do that...
And as per my view, use update panel and fill that on selection index changes...so you can easily get that value in code behind......
in all above solution...it might not get hte value in code behind...
MARK AS ANSWER IF THIS WORKS...