password compare

Oct 14, 2015 at 8:13 PM
I'm using Visual Studio 2010 Professional, NET framework 4.0 and MVC 2 to develop and test new Mvc Music Store application.

The following line gave me "The type or namespace name 'Compare' could not be found. (Are you missing a using directive or an assembly reference) ?"

[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]

What cause it? Is there a other attribute other than Compare I can try ? Is there a way to work around ?

Please advice...