是否动态添加仅接受数字值的文本框? [英] Dynamically adding the textboxes which accepts only Numeric vales?

查看:82
本文介绍了是否动态添加仅接受数字值的文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


附加图像,请发现该图像中有一个添加客户端"选项,当我们单击该按钮时,将添加更多表(动态添加行).如果单击任何特定日期以将详细信息显示在网格视图行中,则还有一个日历工具,该文本框应仅接受数字值(字符从不显示).

我被带到了项目"文件而不是网站",当我们检查文本框属性时有一个选项事件",在事件"中没有按键"选项,因为我被带到了项目文件中.

Hi,
Attached the image, please find that, in that image there is a "add client" option is there , when we click that button more tables will be adding(Dynamically adding the rows). There is a calender tool is also there, if we click any particular date that details should be display in grid view rows.That text boxes should accepts only numeric values.(Characters never display).

I was taken "project" file not "Website" , when we check the text box properties there is an option "Event" , in "Event" there is no "Key press" option because i am taken project file . Is there any way to come out from this problem?

推荐答案

如果您正在开发一个网站,则TextBox不会发生事件"KeyPress".在Windows应用程序中可用.

http://msdn.microsoft.com/zh-cn/library/system.web.ui.webcontrols.textbox.aspx
If you are developing a website, TextBox does not have an event ''KeyPress''. It is available in Windows applications.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.aspx


这篇关于是否动态添加仅接受数字值的文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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