aspnet-js-aspxclientprocessingmodeeventargs.md
Specifies whether or not to process the event on the server.
processOnServer: boolean
| Type | Description |
|---|---|
| boolean |
true to handle the event on the server; false to handle it on the client.
|
The processOnServer property allows you to specify where to handle the event:
false - Handles a user action on the client side without a postback.true - Handles the user action on the client side, then goes to the server side.The processOnServer property gets the true value if you set the AutoPostBack property to true.
<dx:ASPxTextBox ID="Number" runat="server" Text="0" OnTextChanged="ASPxTextBox1_TextChanged">
<ClientSideEvents TextChanged="function(s,e) { e.processOnServer=true; }" />
</dx:ASPxTextBox>
<dx:ASPxTextBox ID="SquareOfTheNumber" runat="server" Text="0" />
protected void ASPxTextBox1_TextChanged(object sender, EventArgs e){
string text;
ASPxTextBox textBox = (ASPxTextBox)sender;
text = textBox.Text;
int number = int.Parse(text);
number *= number;
SquareOfTheNumber.Text = number.ToString();
}
See Also