ASPxClientLabel.SetText(text) Method
In This Article
Sets the text to be displayed within the editor.
#Declaration
TypeScript
SetText(
text: string
): void
#Parameters
Name | Type | Description |
---|---|---|
text | string | A string value specifying the text to be displayed within the editor. |
#Remarks
Note
- The ASPx
Label control is intended for text representation only, so client-side text is not synchronized with the server. - The Set
Text method does not HTML encode the specified text.
<dx:ASPxTextBox ID="ASPxTextBox1" runat="server" Width="170px" ClientInstanceName="textBox"></dx:ASPxTextBox>
<dx:ASPxButton ID="ASPxButton1" runat="server" Text="Set Label Text" AutoPostBack="False" >
<ClientSideEvents Click="function(s, e) { label.SetText(textBox.GetText()); }" />
</dx:ASPxButton>
<dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="" ClientInstanceName="label">
</dx:ASPxLabel>
See Also