Im having trouble disabling or set textbox to readonly after postback submission.
what code do i need from controller to disable a razor textbox in views.
please dont suggest to use jquery for me to familiarize mvc thanks.
What I have tried:
i can do this by default but cant control the properties of the textbox in the c# controller.
<input id="Name" name="Name" type="text" value="@Model.listovariableclass" disabled="disabled"