I have a form with the following TextBox control
$this->txtSkype = new QTextBox($this);
$this->txtSkype->CssClass = 'txt-lng-view';
$this->txtSkype->Name = 'Skype';
$this->txtSkype->Text = $this->objUser->Skype;
This controlled is rendered using RenderWithError
btnEdit_Click changes the CssClass of the TextBox
$this->txtSkype->CssClass = 'txt-lng-edit';
btnSave_Click saves the changes
$this->objUser->Skype = $this->txtSkype->Text;
$this->objUser->Save();
However the original $this->objUser->Skype value is saved not what the user has entered in $this->txtSkype->Text.
I have tried various permutations but still can't get the user entered value to save unless I remove the change to CssClass. Any clues as to what I'm missing.
Thanks
Mike