Compare password and confirm password in ASP.Net MVC

后端 未结 6 1057
遥遥无期
遥遥无期 2021-02-07 06:32

Is it possible to compare confirm password textbox\'s text with @Html.PasswordFor(model=>model.Password)?

@using (Html.BeginForm())
{
    

        
6条回答
  •  悲&欢浪女
    2021-02-07 06:49

    Try to write javascript for that to compare password...

    But DataAnnotation is Preferred

提交回复
热议问题