ASP.NET DROPDOWNLIST

Ashish Pandey

Total Post:128

Points:898
Posted by  Ashish Pandey
 794  View(s)
Ratings:
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. 
Thanks 
  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: asp.net dropdownlist

    Hi Ashish, 


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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!