中的数字用户控件文本框 [英] Numeric Usercontrol textbox in

查看:70
本文介绍了中的数字用户控件文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我想要Usercontrol(.ascx)中的文本框.
它应该是数字的UserControl文本框(例如:121,234).
而其他文本框应为带小数点的数字(例如:3.4,100.23).

问候,
Aamir

hi friends,
i want a Textbox in Usercontrol(.ascx).
it should be numeric UserControl textbox(ex:121,234).
and other textbox should be numeric with decimal (ex:3.4,100.23).

regards,
Aamir

推荐答案

还有什么除了要求"之外?
尝试了什么?

请您自己尝试并发布特定问题.

总体而言,您需要具有任一被屏蔽的文本框.根据需要仅允许使用整数.如果您想警告用户,则可以引发Javascript警报.


试试吧!
And what else apart form the ''requirement''?
Tried anything?

Please try by yourself and post specific issues.

Overall, you need to have either masked textbox. Allow only integers as per need. You can raise Javascript alerts in case you want to warn user.


Try out!



您应该尝试使用屏蔽的文本框.请在此处 [
Hi,
You should try masked textboxes. Refer here[^].


--Amit


我的查询没有解决方法.
我不太了解usercontrol.但是我的要求是创建Usercontrol设置其属性并针对maxlentgh数字文本框进行验证.
No solutions I m getting for my query.
I am not much aware of the usercontrol.But my requirement is to create Usercontrol set its properties and validate it for maxlentgh,numeric textbox.


这篇关于中的数字用户控件文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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