hi
how can i refresh my data periodically using c#.
thanks
How to auto refresh my data
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dipa AhujaRank #1,168 · 1.5K reputationPosted May 14, 2010, 5:10 AM EDT
DRISHTY134 reputationPosted May 14, 2010, 5:10 AM EDT
You can do it using javascript,
Here I am giving you one example:
First add one button , say its id is 'Button2' and set its property width=0,height=0,visible=true.
Add the code of loading data into click event of Button2.
Then,add 'onload="loadForm()"' in body tag of form.
Add following javascript functions in head tag:
function loadForm()
{
var interval;
//set interval to 10 sec.
interval=10 * 1000;
//call 'blink_text()' function in every 10 sec.
timerblink = setInterval('blink_text()',interval);
}
function blink_text()
{
document.getElementById("Button2").click();
}
Dipa AhujaRank #1,168 · 1.5K reputationPosted May 14, 2010, 5:39 AM EDT