public function SetParentControl($objControl)
{
// Mark this object as modified
$this->MarkAsModified();
// Mark the old parent (if applicable) as modified
if ($this->objParentControl) {
$this->objParentControl->RemoveChildControl($this->ControlId, false);
}
// Mark the new parent (if applicable) as modified
if ($objControl) {
$objControl->AddChildControl($this);
}
}