Note that there's no attempt made to resolve naming conflicts in different naming containers. If there's a naming conflict last one wins.
public void AddClientIds(Control container, bool recursive);
recursive
Determines whether ClientIDs are retrieved recursively by drilling into
containers. Use with care - large pages with many controls may take a long
time to find and serialize all control Ids. It's best to focus on the
controls you are interested and if necesary use multiple AddClientIds()
calls.