博客网站同步 [英] Blog Site Syncronization

查看:92
本文介绍了博客网站同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个支持ASP的网站,使用VBExpress进行编码.


我正在使用一个数据库为多个用户编写一个BLOG网站,用于显示在GridView控件中显示的消息.

我遇到两个问题.

(1).当用户[x]向数据库输入一条消息时,该消息将更新他/她的DataGrid.如何更新用户{y},[z} .. etc.浏览器上的DagaGrids?

(2).我当前正在页面中使用计时器来执行上述操作,但是多个用户计时器和{Send Blog Button}输入数据库上的活动时出现问题.


您对整洁,牢固的过程有什么建议吗?

谢谢... Tom

I have an ASP-capable website, Coding with VBExpress.


I am writing a BLOG site for multiple users with a single database for messages which are displayed in a GridView Control.

There are two items I am having trouble with.

(1). When user [x] inputs a message to the DB which updates his/her DataGrid. How do I update user {y},[z}..etc. DagaGrids on their Browsers?

(2). I am currently using a timer in the page to do the above but Having problems with multiple user timers and {Send Blog Button} inputs activity on the database.


Have you any suggestions for a neater and more solid process?

Thanks... Tom

推荐答案

最简单的方法是使用户手动刷新页面(自动刷新使我烦恼).当用户刷新页面时,它将重新查询数据库,而Bob是您的叔叔.
The easiest way is to make the user manually refsresh his page (auto refreshes annoy the hell outa me). When the user refreshes the page, it requeries the database, and Bob''s your uncle.


这篇关于博客网站同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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