Add dynamic controls in ASP.NET, is there a difference between 1.1 and 2.0?
问题 I am pretty sure back in the days of ASP.NET 1.0/1.1, controls created during runtime needs to be added before Page_Load event of the Page Lifecycle (i.e. inside Page_Init ). Here's one article by Microsoft on it (for .NET 1.0/1.1): HOW TO: Dynamically Create Controls in ASP.NET: Note When you create dynamic controls on a Web Form, you must create the controls and add them to the controls collection in either the Page_Init event handler or the Page_Load event handler. Otherwise, the controls