I have a Kentico editable text web part on my custom web part. If on a given Kentico page, an editor does not enter any text into the editable text web part, I'd like to hide the web part from the view of end users.
<%@ Register Src="~/CMSWebParts/Text/editabletext.ascx" TagName="editabletext" TagPrefix="uc2" %>
<uc2:editabletext ID="txtDescription" runat="server" RegionType="htmlEditor" DialogHeight="400"
DialogWidth="500" RegionTitle="Description" HtmlAreaToolbarLocation="Out:FCKToolbar" />
I have stepped through debugging and checked the value of txtDescription.GetContent(), but I'm guessing that it's not returning the value that the user enters because it hasn't loaded yet?
Do I need to clone the web part and raise an event at the end of the editable text control function below?
public override void OnContentLoaded()
{
base.OnContentLoaded();
SetupControl();
}
Thanks!
Joe Hoppe