1. Control element Label

    Article: AN0001725Updated: 10.05.2021

    ASP.NET control element, that allows to insert into the page a text or formatted HTML code with text.

    Properties

    Name Description
    Control Parent Reference to a parent control.
    bool Visible Indication, whether the control is displayed or hidden.
    string ID ID of the control on server side.
    string ClientID ID of the control in HTML code. It can be used to at client side in JavaScript.
    string Text Text with displayed label.
    string CssClass Name of a CSS class with styles.
    string ToolTip Tooltip for display after moving mouse over the label.

    Example

    Example adds a label into the page. It sets its ID to l1.

    var label = OGForm.CreateLabel('l1', 'Your text.');
    OGForm.AddControl(label);


     

×