在asp.net中的文本框控件上输入时间 [英] input time on a textbox control in asp.net

查看:108
本文介绍了在asp.net中的文本框控件上输入时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以bz建议我 如何记录输入时间  文本框控件  asp.net 


< span class =code-keyword> 计时器从时间 开始 i开始 在文本框中输入停止 我将移动到下一个文本框移至 任何其他控件 i需要 记录时间 进入 tex 文本框..

解决方案

处理获得焦点并失去焦点事件。

获得焦点后,启动计时器。

失去焦点后,停止计时器,计算时差并显示它。

Can anyone bz suggest me how to record the input time on a textbox control in asp.net


that is the timer starts at the time when i start to input something in the textbox and stops when i move to the next textbox or move to any other control and i need to record this time of entering the text in the textbox..

解决方案

Handle the got focus and lost focus events.
On got focus, start the timer.
On lost focus, stop the timer, calculate the time difference and display it.


这篇关于在asp.net中的文本框控件上输入时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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