Disable EditorFor

In class we ran into an issue where we wanted to display all data in the same way, but did not want to allow that data to be altered. For example, we may want to display the data that an entry into the database was created, but not allow it to be edited. This can be done without using EditorFor, but then creates a styling/presentation issue. 

This was resolved by disabling EditorFor, allowing the data to be displayed, but not altered. 

0 COMMENTS

Please Log in or Register to leave a comment