Can't access edited text

May 31, 2008 at 5:40 AM
Hi, I can't access the edited text in the RTE control. 

Example: I set the Text property to be, say "John Carpenter."  I then run the program, change the text in the text box, and click a "Save" button on the page.  I have a breakpoint in the Save button code; the code simply copies the text into a variable.  However, the value of .Text is still "John Carpenter."  What am I doing wrong?
Developer
Jun 4, 2008 at 3:15 AM
Are you calling the javascript function CopyText() before submitting? I'm not sure why this particular JS function needs to be called but it seems to do the trick.
Jun 4, 2008 at 8:23 AM


yorkrj wrote:
Are you calling the javascript function CopyText() before submitting? I'm not sure why this particular JS function needs to be called but it seems to do the trick.



That function is copying the contents from the TEXTAREA to an internalvariable (which is returned to the program)

I added an 'onblur' attribute to the iFrame so I could not forget to call it:
In CreateChildControls, just after the 'frameborder' attribute:

iFrame.Attributes.Add(

"onblur", "CopyText();");