The BLDLabel control is a subclass of the native Label that can populate
its text using the textual metadata from a DataField. It typically shows
the DisplayName or ShortDisplayName from the
DESDA.DisplayNameAttribute.
You can specify the DataField name in its DataField property. It knows the Entity
class for that DataField by looking at the containing DataBound control.
Alternatively, you can point its AssociatedControlID property to the
BLDDataField control that it labels. It will determine the DataField from that.
<des:BLDLabel id="ProductNameLabel" runat="server" AssociatedControlID="ProductName" />
<des:BLDDataField id="ProductName" runat="server" DataField="ProductName" />
Use the LabelSource property to select the source from the Business Logic:
DisplayName, ShortDisplayName, Description, or Prompt. The resulting text will be localized.
Use the Source Code Browser to see examples of each DataBound control
using these objects.
In the next topic, you will
learn about Pattern Templates.
Open the Source Code Browser (C# only)