I have an UpdatePanel that has a repeater inside and a Repeater inside the button that I want to be a PostBackTrigger for the UpdatePanel (and not AsyncPostBackTrigger).
I tried to create a trigger in the code located in the Repeater ItemDataBound event (using the code below), but tried nothing to work.
PostBackTrigger trigger = new PostBackTrigger(); //failed //trigger.ControlID = "btnCourseAttachmentUpdateSubmit"; //failed //trigger.ControlID = ((Button)e.Item.FindControl("btnCourseAttachmentUpdateSubmit")).ID; //failed //trigger.ControlID = ((Button)e.Item.FindControl("btnCourseAttachmentUpdateSubmit")).ClientID; //failed //trigger.ControlID = ((Button)e.Item.FindControl("btnCourseAttachmentUpdateSubmit")).UniqueID; panAttachments.Triggers.Add(trigger);
I know there is a way to resolve this with a hidden button, but before I did this, I was wondering if there is a way to do this, similar to what I tried in the code above?
source share