使用campare验证器 [英] using campare validator
本文介绍了使用campare验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过使用asp.net中的比较验证器来检查文本框1的数量必须小于文本框的数量.
我可能知道如何编写
i want to check by using compare validator in asp.net that text box 1 amount must less than text box amount.
may i know how to write
推荐答案
,然后将文本框字符串转换为实际值,例如Integer.TryParse(),然后与If语句进行比较.有什么困难?
So convert your textbox strings to actual values, for example, Integer.TryParse(), and then compare with an If statement. What''s so difficult??
这篇关于使用campare验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文