Prado\Web\UI\WebControls\THiddenField::setValue PHP Method

setValue() public method

Sets the value of the THiddenField
public setValue ( $value )
    public function setValue($value)
    {
        $this->setViewState('Value', $value, '');
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Client-side Value property can only be updated after the OnLoad stage.
  * @param string text content for the hidden field
  */
 public function setValue($value)
 {
     if (parent::getValue() === $value) {
         return;
     }
     parent::setValue($value);
     if ($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) {
         $this->getPage()->getCallbackClient()->setValue($this, $value);
     }
 }