<Label>

The Label tag renders as a static text at run-time.

Syntax

<Label
    ID="string"
    For="string"
    Text="string"
    CssClass="string"
    Visible="True|False"
/> 
 

Remarks

The Label tag provides the ability to offer better accessibility to your users by using the "target" attribute to identify a form control for which the label provides the caption. This makes it much easier for screen reader applications to understand your form. When supplying text for the Label, you can either place it in the text attribute or you can place it between the opening <label> and closing </label> tags.

Back to top

Example

<addform>
  ...
 <table>
    <tr>
      <td>
        <label id="lblFirstName" for="txtFirstName" text="First Name" />
        <textbox id="txtFirstName" datafield="FirstName" datatype="string" />
      </td>
    </tr>
    <tr>
       <td>
         <label id="lblLastName" for="txtLastName" text="Last Name" />
         <textbox id="txtLastName" datafield="LastName" datatype="string" />
       </td>
    </tr>
    <tr>
      <td colspan="2">
        <addbutton text="Add"/> <cancelbutton text="Cancel"/>
       </td>
    </tr>
  </table>
</addform>
Back to top