hi
how can i refresh my data periodically using c#.
thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dipa AhujaPosted May 14, 2010, 9:39 AM
DRISHTYPosted May 14, 2010, 9:10 AM
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 AhujaPosted May 14, 2010, 9:10 AM