Search results

Set the disabled state in ASP.NET Core Button control

20 Jan 2022 / 1 minute to read

Button component can be enabled/disabled by giving disabled property. To disable Button component, the disabled property can be set as true.

The following example demonstrates Button in disabled state.

Copied to clipboard
<ejs-button id="disabled" disabled="true" content="Disabled"></ejs-button>
Copied to clipboard
public ActionResult DisabledButton()
    return View();