C#下拉列表更改事件
上面有aspx
protected void myListDropDown_Change(object sender, EventArgs e) { //stuff that never gets hit }
我在myListDropDown方法上设置了一个断点但它永远不会被击中。 有什么建议?
将DropDownList
控件的AutoPostBack
属性设置为true
。
DropDownList的Autopostback属性需要设置为“true”。