# Events

The Telerik UI TextBox for ASP.NET Core exposes multiple [events](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/textboxeventbuilder) that allow you to control and customize the behavior of the UI component.

For a complete example on basic TextBox events, refer to the [demo on using the events of the TextBox](https://demos.telerik.com/aspnet-core/textbox/events).

## Handling by Handler Name

The following example demonstrates how to subscribe to events by a handler name.

```Razor HtmlHelper
  @(Html.Kendo().TextBox()
        .Name("textbox")
        .Events(e => e
            .Change("textbox_change")
        )
  )
```

```Razor TagHelper
<kendo-textbox name="textbox"
               on-change="textbox_change">
</kendo-textbox>
```

```JS script.js
  <script>
  function textbox_change() {
      // Handle the change event.
  }
  </script>
```

## Next Steps

* [Using the TextBox Events (Demo)](https://demos.telerik.com/aspnet-core/textbox/events)

## See Also

* [Using the API of the TextBox HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/textbox/api)
* [TextBox Server-Side API](https://www.telerik.com/aspnet-core-ui/documentation/api/textbox)
* [TextBox Client-Side API](https://docs.telerik.com/kendo-ui/api/ui/textbox)
