Here Mudassar Ahmed Khan has explained with an example, how to enable or disable TextBox from Controller in ASP.Net MVC Razor.
A Boolean value will be stored in a ViewBag object inside the Controller’s Action method and the value of the ViewBag object will be used to enable or disable the TextBox in View.
↧