Addhandler, button.click not firing using VB.NET
问题 I am experiencing a problem with buttons and AddHandler. It only works if I use AddHandler Button1.click, AddressOf... in Page_load, but if I create the button dynamically in one of the sub routines, the event doesn't fire. For example, <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"> <asp:ListItem>1</asp:ListItem> <asp:ListItem>2</asp:ListItem> </asp:DropDownList> <asp:ScriptManager id="ScriptManager1"