Some HTML attributes, such as aria-pressed, don't function properly when the .NET type is a bool. ASP.NET Core Razor Application - How to create a click event for a button? Consider the following Heading component, which can be used by other components to display a heading. Note: In the Razor PageModel, the Handler method name is OnPostSubmit but here it will be specified as Submit when calling from the Razor HTML Page. Monday, August 10, 2009 4:13 . For various QuickGrid demonstrations, see the QuickGrid for Blazor app. Components can also be referenced using their fully qualified names, which doesn't require an @using directive. When placed in a code-behind file, they can make the page feel very much like . They can't be removed or updated afterwards. Razor C# @(Html.DevExtreme().Button() .OnClick("function { alert('The button was clicked'); }") ) @(Html.DevExtreme().VectorMap() .Tooltip(t => t .CustomizeTooltip . EventCallback