asp.net DropDownList event not firing
I have a problem with a dropdownlist that doesn't seem to "notice" when the selected index has changed. On the form it looks something like this:
<asp:DropDownList ID="DDLResponsible" runat="server"></asp:DropDownList>
On the form there is another dropdownlist and when the selected index changes in that one, this one is reloaded using javascript. This works fine. But when i select an item from this list and press the save button on the form, the selected value just doesn't seem to change.
I tried using AutoPostback = true but that just made both lists reload to their original values.
If anyone understands what's going on, please please please explain in to me.
Do you use Page.IsPostBack on Page.OnLoad? If you miss that it would cause this behavior..
Can you post more code?
看起来,如果IsPostBack检查在Pageload事件中丢失....请检查它,或者如果没有,那么请更多地解释你的问题。
链接地址: http://www.djcxy.com/p/67226.html