Friday, June 10, 2016

attribute to make a getsetter a password control in Razor

[DataType(DataType.Password)]

Slap this on a getsetter for a string at your model and then in the Razor markup it needs to map to an EditorFor in lieu of just a TextBoxFor.

No comments:

Post a Comment