I have marked a property as readonly in the model class, like this:
public class RegisterModel { [Display(Name = \"User name\")] [Re
If you're using a SETTER you have to use { get; private set; }. That will make it so the client can't change the value. You can also just use an HTML 5 input and mark it there.