Docs / Development / ShortText Field Control

ShortText Field Control

Although this feature is supported in sensenet 7, it is built on the old Web Forms technology that you should not use for new projects. We encourage you to use a more modern UI solution using our client-side packages.

The ShortText Field Control is a Field Control that handles ShortText Fields and provides an interface to display/modify short text data.

With ShortText field control textual data can be displayed or edited up to 450 characters. (Longer text will be truncated on save!) Ideal for storing simple descriptions, but also can contain complex HTML formatted text to display custom visualized data.

Supported Field types


The ShortText Field Control is a simple Field Control that renders a single TextBox. In Browse mode simply the value of the Field is rendered.

Browse view template

<%@  Language="C#" %>
<%# DataBinder.Eval(Container, "Data") %>

Edit view template

<%@  Language="C#" %>
<asp:TextBox ID="InnerShortText" CssClass="sn-ctrl sn-ctrl-text" runat="server"></asp:TextBox>


Simple example

   <sn:ShortText ID="ShortText1" runat="server" FieldName="Data1" />

Templated example

   <sn:ShortText ID="ShortText2" runat="server" FieldName="Data1">
         <asp:TextBox ID="InnerShortText" runat="server"></asp:TextBox>

Is something missing? See something that needs fixing? Propose a change here.