English 中文(简体)
怎么能够自动有一个网页,在5分钟的宽度/宽度中节省目前的时间?
原标题:How can i automatically have a page save the current time to the DB in 5 minute intervals w/o postback?
  • 时间:2011-11-02 18:17:45
  •  标签:
  • c#
  • asp.net

基本上有C# Web App,用户在那里观看了流传视频。 他们认为,在法典中,时间比较长。 当他们观看录像时,他们打上了从开始时间和结束时间起算差异的纽芬兰语,并用电子邮件给我全眼的时间。

问题是,如果他们失去会议或因特网连接时间短暂,时间就会消失,而且没有证据证明他们观看1.5小时录像的时间。

我很想知道,在什么时候开始让数据库自动节省时间,如在幕后每5分钟,而不影响到流传视频或张贴回播,这样他们就能够记录到,在失去联系之前,会有多少时间。

最佳回答
问题回答

一种选择是,在间隔时间与服务器交谈,以说“我在此仍然如此”——如果你的麻风能打电话发送了录像资料或某种其他形式的会议识别资料,它可以在适当时候更新你的数据库。

我建议与[WebMethods]一道研究如何使用j Query。 这样做非常简单。 The s a nicely written article that Negotiations about how to achieving it with asp.net:

Suggestions to use JQuery or other AJAX library to make ajax call every 5 min are good but if you are new to this, you can use the asp.net ajax extensions Timer object (Toolbox->AJAX Extensions->Timer). its not hard to use, it follows a typical event driven model like other ASP.NET controls





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签