This project is read-only.

password compare


I'm using Visual Studio 2010 Professional, NET framework 4.0 and MVC 2 to develop and test new Mvc Music Store application.

Attached file show a red, wavering line under the word 'Compare' in AccountModels.cs

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...