i need to add JavaScript calls in some controls attributes, i am using master pages but in order to obtain the contentplaceholder client id i am iterating over the forms controls. is there another way to obtain in the server side code of the content page?
foreach (Control control in this.Form.Controls)
{
if (control is ContentPlaceHolder)
{
contentPlaceHolderID = control.ClientID;
break;
}
}