ASPX templates
Version 5.x > ASPX templates > Getting the CData saved from EditableText View modes: 
User avatar
Member
Member
Nesfuratu - 6/26/2011 10:26:00 PM
   
Getting the CData saved from EditableText
I have an image above and below a div, in which the div's content is edited via an editable text control. What I'd like to do is to dynamically set the images' visible property depending on whether there are text in div or not.

Is there a way to assess whether there are text within an editable text control from code behind?

Thanks,
John.

User avatar
Member
Member
Nesfuratu - 6/26/2011 10:28:40 PM
   
RE:Getting the CData saved from EditableText
Nevermind. I just worked it out.

((Literal)fastfacts.Controls[0]).Text;

where fastfacts is the name of my editabletext control's id.