File: D:/HostingSpaces/RMourik/bassol.nl/wwwroot/CMSWebParts/Wireframe/Text/Paragraph.ascx.cs
using System;
using System.Data;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using CMS.ExtendedControls;
using CMS.Helpers;
using CMS.PortalControls;
public partial class CMSWebParts_Wireframe_Text_Paragraph : CMSAbstractWireframeWebPart
{
#region "Properties"
/// <summary>
/// Text
/// </summary>
public string Text
{
get
{
return ValidationHelper.GetString(this.GetValue("Text"), "");
}
set
{
this.SetValue("Text", value);
}
}
#endregion
/// <summary>
/// Content loaded event handler.
/// </summary>
public override void OnContentLoaded()
{
base.OnContentLoaded();
SetupControl();
}
/// <summary>
/// Initializes the control properties.
/// </summary>
protected void SetupControl()
{
if (StopProcessing)
{
// Do not process
}
else
{
// Width
string w = WebPartWidth;
if (!String.IsNullOrEmpty(w))
{
ltlText.Style += String.Format("width: {0};", w);
}
ltlText.Text = GetWireframeText(Text, true);
resElem.ResizedElementID = ltlText.ClientID;
}
}
/// <summary>
/// Reloads the control data.
/// </summary>
public override void ReloadData()
{
base.ReloadData();
SetupControl();
}
}