i want to make a method that that will automatically update the value of a label by accessing the data from database after a fixed interval of time.
Can such a method be made that automatically runs in the back end and loops itself after a fixed interval of time.
i want to make a method that that will automatically update the value of
Share
Use AJAX. Ingredients: 1 ScriptManager, 1 Timer, 1 UpdatePanel
Code :
Code Behind :
This example fills the label with a random number every five seconds, now you can both change the interval of timer and C# code to what you like. For example you may set the label text to a value from database or whatever.