When binding a repeater and using OnItemDataBound
, I assign a static id to a Label
control, which is then used to navigate by having a sticky header with ScrollIntoView(ElementID);
links… I have over 7000 records being displayed, and pagination is NOT an option, so I only bind once, and the labels are only there/visible once per specific groupings!
The problem is that every row in the repeater also has a LinkButton
and, when it posts back, all of the sectional headers are then cleared of their static id’s and are back to being named by the ContentPlaceholder
… is there a way to keep dynamically created IDs without rebinding all records?