# Events

The CheckBox for ASP.NET Core exposes the [`Change()` event](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui.fluent/checkboxeventbuilder#changesystemstring) that you can use for capturing the CheckBox's value during user interaction.

### Handling by Handler Name

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

```Razor HtmlHelper
    @(Html.Kendo().CheckBox()
        .Name("CheckBox")
        .Events(e => e
            .Change("change")
        )
    )
    <script>
        function change(e) {
            // Handle the change event.
        }
    </script>
```

```Razor TagHelper
    <kendo-checkbox name="checkbox" on-change="change"></kendo-checkbox>
    <script>
        function change(e) {
            // Handle the change event.
        }
    </script>
```

### Handling by Template Delegate

The following example demonstrates how to subscribe to events by a template delegate.

```Razor HtmlHelper
    @(Html.Kendo().CheckBox()
        .Name("checkbox")
        .Events(e => e
            .Change(@<text>
              function(e) {
                  // Handle the change event inline.
              }
            </text>)
        )
    )
```

```Razor TagHelper
    <kendo-checkbox name="checkbox"
              on-change="function() {
                 // Handle the change event inline.
              }">
    </kendo-checkbox>
```

## Next Steps

* [Setting the CheckBox Appearance (Demo)](https://demos.telerik.com/aspnet-core/checkbox/appearance)

## See Also

* [CheckBox Server-Side API for ASP.NET Core](https://www.telerik.com/aspnet-core-ui/documentation/api/checkbox)
* [CheckBox Client-Side API](https://docs.telerik.com/kendo-ui/api/ui/checkbox)
