vendredi 31 juillet 2015

New Line Character in mvc3 model In errormesaage

I'm using MVC 3 web application and i have give error message with
tag but br tag not working in mvc 3 if i used mvc4 then its working fine below are the code whioch i used.


 [StringLength(100, ErrorMessage = "The {0} must be <br/> at least {2} characters long.", MinimumLength = 6)]
 [Display(Name = "Password")]
 public string Password { get; set; }


 <div class="editor-field">
  @Html.PasswordFor(m => m.Password)
  @Html.ValidationMessageFor(m => m.Password)

Please help me.

Aucun commentaire:

Enregistrer un commentaire