Flags do not have different marked / unverified values; they have only a verified value. If you understand why a razor displays a hidden field, you understand that.
Imagine that it has value='false' . What happens if you check the box? Do you expect the value to change? (hint: you shouldn't). Check the box with value='false' . What does that even mean? Then, after posting, you will send false as your value, and that would be pointless.
So. Flag attribute values ββare not changed. If you need to write code that uses this value, do not look at its value, see if it is checked.
source share