更新数据库并点击计数器 [英] Updating the database and hit counter
本文介绍了更新数据库并点击计数器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个网站,而在我的项目中我所面临的问题是,如何为用户开发计数器?如何在用户访问该网站时更新数据库?
我需要有关命中计数器和更新数据库的帮助.
Thanks
I am developing a website and the problem I am facing in my part of the project is, how can I develop for hit counter and how can I update the database when the user visits the web site?
I need help with both the hit counter and updating the database.
thanks
推荐答案
在Page_Load
事件处理程序中,如果它不是回发,请更新数据库.
编辑=============
被标记为答案,但获得1票?荒谬...
In thePage_Load
event handler, if it''s not a postback, update the database.
EDIT =============
Marked as the answer, yet given a 1-vote? Absurdity...
您可以将应用程序变量用于命中计数器.....并且可以将该值存储在数据库中.....
You Can use Application Variable for the Hit Counter.....and can store that value in the Database.....
这篇关于更新数据库并点击计数器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文