Home > DeveloperSection > Forums > asp.net dropdownlist
Ashish Pandey

Total Post:128

Posted on    August-22-2014 12:55 AM

 ASP.Net ASP.Net 

 1 Reply(s)
 777  View(s)
Rate this:
I have two dropdown lists state,city. My requirement is that i need to populate city dropdown list on the basis of state dropdown list.
 So i have set autopostback=true for state dropdown list and ontextchanged event of state dropdown 
 im calling my function which populates city dropdown..
 Is it the correct way or is there any other way to do this. 

Sumit Kesarwani

Total Post:378

Posted on    August-22-2014 1:52 AM

Hi Ashish, 

Use SelectedIndexChanged event of the first dropdown to check for selected value & databind your 2nd dropdownlist.

Don't want to miss updates? Please click the below button!

Follow MindStick