Search results

Set disabled state in ASP.NET MVC Switch control

26 Nov 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();