Skip to main content

ASPxClientTextBox Class

A client-side equivalent of the ASPxTextBox control.

Declaration

declare class ASPxClientTextBox extends ASPxClientTextBoxBase

Remarks

The ASPxClientTextBox object serves as a client-side equivalent of the ASPxTextBox class.

ASPxTextBox_control.png

Use the ClientInstanceName property to programmatically access the client object rendered for the ASPxTextBox control in client-side script.

Example

In this example, click the ASPxHyperLink to set the text box value to the hyperlink’s text using the client SetValue(value) method.

<dxe:ASPxTextBox ID="tbText" runat="server" Width="170px">
     <ClientSideEvents TextChanged="OnTextChanged" KeyPress="OnKeyPressed" />
</dxe:ASPxTextBox>
<dxe:ASPxHyperLink ID="lnkSample1" runat="server" Text="Text #1" Cursor="pointer">
     <BorderBottom BorderStyle="Dashed" BorderWidth="1px" />
     <ClientSideEvents Click="OnHyperLinkClick" />
</dxe:ASPxHyperLink>
See Also