Lets explain the problem with a simple case:Lets CC be a composite control.CC has a variable called filter (string) stored in viewState.CC has 2 static child controls:
- searchBox: Textbox
- searchButton: Button
- PageLoad
- CreateChildControls:
- Create static child controls
- Request database using filter
- Create table with results and insert on each row an editButton (Button) and binding handler to the editButtons click event.
- Insert table in childControls hierarchy.
- Click event is fired
- update the filter
- Recreate child controls this is where I am stucked