troubleshooting Question

Adding programatically created controls as triggers for updatepanel.

Avatar of ShopSetup
ShopSetup asked on
.NET Programming
4 Comments1 Solution3130 ViewsLast Modified:
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;

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.

Any ideas?

Thanks for any help...
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros