How to set read-only TextBox in ASP.NET MVC TextBox
21 Aug 20261 minute to read
To make the TextBox read-only, set the readonly property to true.
<div class="control-section">
@Html.EJS().TextBox("readonly-textbox").Placeholder("Enter Name").Readonly(true).Render()
</div>public ActionResult Index()
{
return View();
}