ASP.NET / C#: DropDownList SelectedIndexChanged in server control not firing

前端 未结 5 1485
我寻月下人不归
我寻月下人不归 2020-12-30 07:39

I\'m creating a server control that basically binds two dropdown lists, one for country and one for state, and updates the state dropdown on the country\'s selectedindexchan

5条回答
  •  [愿得一人]
    2020-12-30 08:13

    I had the same problem but got round it by setting AutoPostBack to true and in an update panel set the trigger to the dropdownlist control id and event name to SelectedIndexChanged e.g.

        
            
                
            
            
                
                    
                
            
        
    

提交回复
热议问题