protected function addAttributesToRender($writer)
{
//calls the TWebControl to avoid rendering other attribute normally render for a textbox.
TWebControl::addAttributesToRender($writer);
$writer->addAttribute('id', $this->getLabelClientID());
$this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(), $this->getPostBackOptions());
}