使用asp.net中的计时器在特定时间执行对数据库的插入。 [英] using timer in asp.net for performing insertion to a database at a particular time.

查看:62
本文介绍了使用asp.net中的计时器在特定时间执行对数据库的插入。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我希望在一天结束时将我在本地数据库中的表中的所有内容添加到服务器数据库中。可以通过设置计时器在登录页面。或者其他任何方式。



我正在使用C#ASP.net 2008,SQL 2005.



请帮帮我。



谢谢.....

Hi,

I want to add all my contents in my tables in local database to server database at the end of day automatically.Is it possible by setting timer in login page.Or else any other way.

I am using C# ASP.net 2008,SQL 2005.

Please help me.

Thanks.....

推荐答案

Googleasp .net计划任务,这是一个非常常见的问题。
Google "asp.net schedule task", this is a very frequently asked question.


在页面级别设置计时器不能解决您的问题。 ASP.Net页面是在客户端而不是在服务器端呈现的。



也许你可以创建某种服务来推送这些数据。

虽然需要在客户端上安装...
Setting up a timer at the page level will not solve your problem. ASP.Net pages are rendered on the client side and not on the server side.

Maybe you can create some sort of service that will push this data.
It will need to be installed on the client though...


这篇关于使用asp.net中的计时器在特定时间执行对数据库的插入。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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