Câu hỏi của Tân Đặng

Tại sao custom validation trong Partial View thì error message không hiển thị?

Mình có file ProductModel.cs namespace TestCustomValidation.Models { public class ProductModel { [Required(ErrorMessage = "It's for test for ProductName")] public string ProductName { get; set; } [CustomRequired(ErrorMessage = "It's for test for ...

Tân Đặng viết 10:08 ngày 01/10/2018 chỉnh sửa

Không muốn override getter, setter từ superclass

Mình có 1 class Model như sau: public class A { [System.ComponentModel.DataAnnotations.Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } public virtual int FAQType ...

Tân Đặng viết 10:04 ngày 01/10/2018 chỉnh sửa
1