asp.net mvc validation depending another property
===

How to validate if validation of one field is depending another field?

     [Required if Type==3]
     public long RID2 { get; set; }


     public byte Type { get; set; }

I want to get Required message if Type==3.
Thanks.