How to update page data automatically into your application when you update it from another application using the same database without refreshing the page?

 Posted by Kmandapalli on 1/22/2014 | Category: ASP.NET Interview questions | Views: 637 | Points: 40
Answer:

In you code put the timer control,
<asp:Timer ID="Timer1" OnTick="Timer1_Tick" runat="server" Interval="10000">
</asp:Timer>

Specify the interval for how much interval the page data should get automatically updated.

Then in the onTick event,
write the code to bind the data from your database.

Then even though your updating the content from your side, the user who is viewing your page currently will get any error, and content gets updated automatically


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response