文本框验证仅允许数字和NA [英] Textbox validation to allow only numeric and NA

查看:68
本文介绍了文本框验证仅允许数字和NA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须对文本框进行验证,仅允许

数字和字符串中的'NA'。除了这不允许输入任何字符。

i必须使用c#代码。

我该怎么做?



我尝试了什么:



i不知道怎么做...

解决方案

研究:数字文本框c - Google搜索 [ ^ ]。

i have to do validation for textbox to allow only
numeric and 'NA' in string only. except this not allow to enter any character.
i have to do using c# code.
How can i do this ?

What I have tried:

i dont know how to do this ...

解决方案

Research: numeric text box c - Google Search[^].


这篇关于文本框验证仅允许数字和NA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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