当表格中有任何更新时,我们如何自动刷新aspx页面. [英] How can we refresh the aspx page automatically, when there is any update in table.
本文介绍了当表格中有任何更新时,我们如何自动刷新aspx页面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用SQL Server 2005和VS.Net2005.
我有一个aspx页面,其中包含一个图表并显示图形.当表(后端)中的数据发生更改时,我必须刷新.aspx页.
我已经从前端使用AJax Timer控件完成了此任务,但正在从SQL Server端寻找解决方案.
有可能吗?
问候,
Sudhir
Hi to all,
I am using SQL Server 2005 and VS.Net 2005.
I have an aspx page which contains a chart and displays the graph. I have to refresh the .aspx page,when data gets change in the table(Back-end).
I have already done it using AJax Timer control from the front-end but looking for the solution from the SQL Server end.
Is it possible?
Regards,
Sudhir
推荐答案
您可以在页面加载时使用它.
you can use this at page load..
Response.AppendHeader("Refresh", "120; URL=here the url of the page");
希望它能帮上忙..
问候理查德人:)
hope it wud help..
regards richards :)
这篇关于当表格中有任何更新时,我们如何自动刷新aspx页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文