Click here to Skip to main content
15,903,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to auto databind my GridView in every 5 seconds . I means "auto refresh". I want to get data from database and bind to GridView in every 5 seconds . Please Help me.. :doh:
Posted
Updated 12-Feb-10 22:19pm
v2

You can use a timer control to do this.
In the Tick event of the timer control, write the code to get data from database and bind it to the grid.
The timer control comes with AJAX extensions.
 
Share this answer
 
Yeah, you can use Timer for your issue as like said by AnkurM, but another option there using HTML META Tag. but it will refresh the whole page.
<meta http-equiv="refresh" content="500">
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900