Search results

Set disabled state in ASP.NET MVC Toggle Switch Button control

05 Aug 2021 / 1 minute to read

Switch can be disabled by setting the disabled property to true.

The following example illustrates how to disable support in Switch component.

Copied to clipboard
Copied to clipboard
public ActionResult Default()
    return View();