I've been trying and I've been reading but I cannot make this thing work... Adding programmatically created controls as triggers for my updatepanel, sigh.
I have 2 repeaters that creates Headlines and Checkboxes that will later filter out a gridview.
The gridview is within a updatepanel, the repeaters are not.
The checkboxes are created based on data from my database.
The checkboxes CheckedChanged events are fired and the filtering begins.
Now I want the gridview to update through a AsyncPostBack.
I've tried added this to both Checkbox_Init and repeater_ItemDataBound
AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();
trigger.ControlID = checkBox.UniqueID;
and I've tried this on both locations:
I have been reading and apparently you have to use the ScriptManager1.RegisterAsyncPostBackControl method to make this work but it just wont.
Thanks for any help...