如何验证两个文本框是否匹配? [英] How Do I Verify That Both Textboxes Match?

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

问题描述

我遇到蛋糕设计师表格的问题。

我不知道如何确定客户是否输入了拼写文本框中的文字与捕获拼写文本框中的文本匹配的信息?



如果用户没有填写,请如何提示用户输入捕获拼写错误框?





请帮助

I am having an issue with a cake designer form.
I do not know how to make sure if a client enters information for an inscription textbox that the text in the catch typo textbox match?

And how would I prompt the user to enter the catch typo box if they did not fill that in?


please help

推荐答案

尝试:

Try:
if (inscriptionText.Text != confirmationText.Text)
   {
   // tell user it needs to be the same.
   ...
   }


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

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