如何控制输入值TextBox? [英] how control enter value TextBox?

查看:58
本文介绍了如何控制输入值TextBox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我有一个我不想从0开始的TextBox。在第一个数字是1-9之后,然后输入0-9的数字。(asp.net)

请指导和帮助

Hello to all
I have a TextBox that I want not start with 0. After the first digit was 1-9 , then enter a digit from 0-9.(asp.net)
Please guide and help

推荐答案

其中一种方法:阅读 RegularExpressionValidator 和试试吧!



这里:

MSDN:RegularExpressionValidator类 [ ^ ]

ASP.NET中的RegularExpressionValidator [ ^ ]



传统的其他方式:跟踪onkeypress / onblur或s跟踪输入数据然后采取相应行动的类似事件。
One of the ways: Read about RegularExpressionValidator and try out!

Here:
MSDN: RegularExpressionValidator Class[^]
RegularExpressionValidator In ASP.NET[^]

Traditional other way: is to track onkeypress/onblur or similar event to track the data entered and then act accordingly.


这篇关于如何控制输入值TextBox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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