Set the disabled state

18 Dec 20241 minute to read

To disable the TextBox, set the enabled property to false.

<div class="control-section">
    @Html.EJS().TextBox("textbox").Placeholder("Enter Name").Enabled(false).Render()
</div>
public ActionResult Index()
{
    return View();
}