从数据库中获取数据
问题描述:
当添加特定记录或在数据库上触发特定事件时,我想显示一条消息,其中包含来自sqlserver数据库的某些数据.
是否可以在不使用计时器控制的情况下这样做.
请帮忙.
I want to display a message with some data from sqlserver database, when a specific record is added or a specific event is fired on database.
Is it possible to do so without using timer control.
please help.
答
计时器不是控件,您可以使用javascript编写计时器.不,没有计时器,您将无法使网站刷新或在没有输入的情况下进行AJAX调用.如果您编写代码或使用第三方库,则为true.如果您不了解,那么您将不了解网络的工作原理.
A timer is not a control, you can just write a timer in javascript. No, without a timer, you cannot make a website refresh itself, or make an AJAX call without input. This is true if you write the code, or use a third party library. If you don''t know that, then you don''t understand how the web works.
使用可以用户使用的SQL触发器
SQL触发器 [ ^ ]
Use can user SQL triggers
SQL Triggers[^]
我同意使用网络ajax.触发性能不高.
i agree to use web ajax.trigger performance is not high.