Asp.NET DropDownList SelectedItem.Value not changing
问题 markup: <div style="float:left;margin-top:15px;width:80px"> <asp:DropDownList ID="MyList" runat="server" Width="100px"></asp:DropDownList> </div> code: // clear vehicles list MyList.Items.Clear(); // add 'all' option MyList.Items.Add(new ListItem("ALL", "0")); // add assets foreach (CustomClass item in items) MyList.Items.Add(new ListItem(item.Name, item.ID.ToString())); No event triggering for SelectedIndexChanged since it's not necessary. When I click the button for postback, the value of