日期:2014-05-19  浏览次数:20712 次

奇怪,怎么不响应事件呢?DropDownList
DropDownList选择其他项后没去执行Head_Changed!

<asp:DropDownList   id= "head1 "   runat= "server "     OnSelectedIndexChanged= "Head_Changed ">  
  </asp:DropDownList>  

public   void   Head_Changed(object   sender,   EventArgs   e)
        {
                  iface.Src=head1.SelectedItem.Value;
        }  

有谁知道为什么吗?

------解决方案--------------------
head1.AutoPostBack=true;
------解决方案--------------------
AutoPostBack=true
------解决方案--------------------
AutoPostBack设为true
------解决方案--------------------
AutoPostBack= "true "
------解决方案--------------------
回发你没设置呀,楼上说的方法应该可以