Get the last control in a placeholder
The following code gets the last control Id in the specified placeholder:
First, you get all controls in the specified placeholder. Then, you iterate through the list of controls until you reach the last control.