Hi!
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.
Works great.
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;
updGv.Triggers.Add(trigger
);
and I've tried this on both locations:
ScriptManager1.RegisterAsy
ncPostBack
Control(ch
eckBox);
I have been reading and apparently you have to use the ScriptManager1.RegisterAsy
ncPostBack
Control method to make this work but it just wont.
Any ideas?
Thanks for any help...
Start Free Trial