Files
Umbraco-CMS/components/editorControls/SettingControls/TextArea.cs
starfighter83 df18581cd2 WIP, data editor settings
[TFS Changeset #78604]
2010-10-19 13:42:59 +00:00

39 lines
998 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using umbraco.cms.businesslogic.datatype;
namespace umbraco.editorControls.SettingControls
{
public class TextArea : DataEditorSettingType
{
private TextBox tb = new TextBox();
public override string Value
{
get
{
return tb.Text;
}
set
{
tb.Text = value;
}
}
public override System.Web.UI.Control RenderControl(DataEditorSetting sender)
{
tb.ID = sender.GetName();
tb.TextMode = TextBoxMode.MultiLine;
tb.CssClass = "guiInputText guiInputStandardSize";
tb.Rows = 7;
if (string.IsNullOrEmpty(tb.Text) && this.Prevalues.Count > 0)
tb.Text = this.Prevalues[0];
return tb;
}
}
}