Masking a text field without changing a model value in ASP.NET MVC

I need to mask the input field / text field in ASP.NET MVC 2 for a credit card. But disguise should not affect her attachment to her model.

I'm trying to do something like this: [DataType (DataType.MaskedCreditCard)] similar to: [DataType (DataType.Password)]

+3
source share

Source: https://habr.com/ru/post/1755322/


All Articles