验证运行时生成的表,该表为该行生成文本框 [英] Validation for runtime generated table which generates textbox for the row

查看:87
本文介绍了验证运行时生成的表,该表为该行生成文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

在我的模块中,我正在维护员工的时间表,要填写时间表,我创建了一个运行时间控制表和文本框,在我的文本框中,控件员工只能填写他/她的24小时时间.文本框不应超过24小时.如果输入的时间超过24小时,则应显示一条消息,提示您输入的时间有误或超过24小时.


对于上述问题,我现在尝试使用范围验证器和Java脚本,但是它无法正常工作,有人可以建议我如何解决此问题,因为这么多天我都在努力解决这一问题,我将非常感谢你们. class ="h2_lin">解决方案

范围验证器可以正常工作,只要它与相关文本框相关联即可.您也可以随时编写自己的JavaScript代码,然后调用该代码进行自己的验证,这非常简单.就像有人说的那样,如果您无法解决问题,请发布一些代码.我们看不到您的代码为何会被破坏.


Hi Friends,

In my module i am maintaining a time sheet for employee,to fill time sheet i have created a run time control table and text box to it, in my text box control employee can fill his/her time of 24 hours only. the text box shouldn''t exceed 24 hours of time.if the time is entered more than 24 hrs then it should show a message that the time entered by you is wrong or it exceeds more than 24 hrs.


For the above problem right now i have tried using range validator and java script but it is not working can any one suggest me how to solve this problem since so many days i am trying to solve this i will be thankful to u guys.

解决方案

A range validator will work fine, so long as it''s associated with the textbox in question. You can also always write your own javascript code and call that to do your own validation, it''s pretty simple. As someone said, if you can''t work it out, post some code. We can''t tell why your code is broken, without seeing it.


这篇关于验证运行时生成的表,该表为该行生成文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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