如何设置两个文本框的比较验证器 [英] how to set compare validator for two text box

查看:142
本文介绍了如何设置两个文本框的比较验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
在这里,我在做注册模块.我想要如何比较密码.在模型中,我仅在模型中只有密码字段.如果我单击添加"按钮进行新注册,我想比较密码并确认密码.

说明:
这是我的模特

hi to all,
Here i doing register module. i want how to compare password.IN Model i have only Password Field only in model.If i click Add button for new register i want to compare Password and conform password.

DESCRIPTION:
Here my model

[Required(ErrorMessage = "Password is required.")]
        [StringLength(12)]
        [Column(TypeName = "char")]
        public string Password { get; set; }



以上型号只有密码字段


检视中:-
如果我单击添加新按钮,我想输入密码并确认密码.如何在这两个文本框中比较视图.我如何编写view



above model have only password field


IN VIEW :-
If i click add new button i want password and conform password. how to compare in views this two textbox.how i write view

推荐答案

请参阅我对问题的评论:整个想法很糟糕.有关更多说明,请参阅我过去的答案:
我已经加密了我的密码,但是当我登录时却出现了错误.如何解密 [ ^ ] ,
解密加密密码 [以安全的方式存储密码值到sql服务器 [ ^ ].

—SA
Please see my comment to the question: the whole idea is bad. For further explanation, please see my past answers:
i already encrypt my password but when i log in it gives me an error. how can decrypte it[^],
Decryption of Encrypted Password[^],
storing password value int sql server with secure way[^].

—SA


这篇关于如何设置两个文本框的比较验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆