WEBSWAPP Silverlight ASP.NET 3.5 ASP.NET 2.0 ASP.NET 1.0
Nested Data
Images
Dynamic Controls
Controls DataGrid

Creating Controls dynamically while preserving the events handling

Click on either the "Add a server control" or the "Add an HTML control" to create a control dynamically. However, upon postback the added controls would be lost had I not stored some information about the added controls in an ArrayList that I saved in the Session object that allows me to recreate the buttons on Page_Init and to re-wire their events.


Server controls


HTML Controls

Source code:

Controls source code