I have a DropDown and a Search button on my View. When user selects year from the DropDown and clicks Search, I am showing a list.
This list has five columns and the first one is a CheckBox. The other columns have TextBoxes. There is also a Save button. User checks few CheckBoxes and clicks Save. The column values of the selected rows are saved in the database and the list reloads.
At this time, when the list reloads, I want to disable some of the rows. These are those rows which were previously checked and saved.
I want to know how to make Checkbox and Textbox disabled from Controller.
Is there any way to do this from C# code in controller without using jQuery or javascript.
I am using Razor Engine.