I’ve created a small update for my ServerControlIDs control, which removes the problem caused by controls within Repeaters and DataGrid.
If you had a repeater that for each item contained an Hyperlink control, you’d get a duplicate entry in the ClientIDs object for every record, to avoid this problem I simply don’t output any sub-controls from within repeater style objects.
That may sound like a bit of a hack, maybe it is, but if you want to refer to multiple elements within another, you shouldn’t really be doing it by ID anyway.
You can get the updated source here or view the full article here.
Post a Comment