I'd like add a tooltip to my razor view like this :
@Html.Editor("Password", new { Title = "Doit contenir au moins une lettre majuscule, une minuscule, un chiffre et un caractère spécial" })
It is not working, If I just change the html helper by the input html tag, it works!!
I need to know :
- Where is the cause of this error?
- How can I fix it?
Adding html attributes using
Html.EditorFor()
and is only supported in MVC-5.1+. If you do have MVC-5.1, then the correct usage isOther wise you need to use the
@Html.Password()
or@Html.PasswordFor()
methodsRefer documentation