在ASP.Net应用程序中停止监视要求. [英] Stop watch requirement in ASP.Net Application.

查看:68
本文介绍了在ASP.Net应用程序中停止监视要求.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为公司进行时间表项目.我正在使用Asp.net,c#和SQl Server.我的客户给了我要求,他需要页面上的3个按钮,Huddle Session,Lunch和Training.当用户要进行闲聊会话,午餐和培训时,他将单击此按钮.当click事件触发时,将弹出一个包含计时器的弹出窗口,直到用户不会回来并单击该弹出窗口并停止计时器为止,该计时器将运行并以分钟格式计算用户所花费的时间.停止将持续时间存储到数据库中的计时器.计时器在弹出菜单中看起来就像是秒表.
请指导我如何实现此目标,并与任何从事类似功能的人共享代码片段.

谢谢,在此并寻求积极的回应.

I m working on time sheet project for my company. I m using Asp.net ,c# and SQl Server.My client had given me the requirement that he need 3 buttons, Huddle Session,Lunch and Training on the page. As the user is going either for Huddle session, Lunch and training he will click on this buttons. As the click event fires a pop up will appears which contain a Timer and till the user will not come back and click on that pop up window and stop the timer ,that timer will run and calculate the time spent in Minutes Format, As the User Stop the timer that Duration will store in to the database.The Timer would be look like a stop watch in the pop up menu.
Please guide me that how i achieve this and also share the code snippets if already have with any one worked on similar functionality.

Thanks In advance and looking for a positive response.

推荐答案

您可以使用Timer控件.

看看这些:
JavaScript计时器 [ Ajax计时器控件 [ Ajax计时器控件-2 [ MSDN:计时器控件概述 [
You can use Timer control for it.

Look at these:
Javascript timers[^]
Ajax Timer control[^]
Ajax Timer control - 2[^]
MSDN: Timer Control Overview[^]


这篇关于在ASP.Net应用程序中停止监视要求.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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