Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could you please let me know the best way to achieve this thing, for example when a user is seeing a web page (like a e-mail service), if there is some event or update (like a message received from someone), this should be notified to the user right at that time (nearly real time)?

I've thought of using AJAX and a timer-like handler to check for the update periodically but this seems not to be good for the server (there may be a chance when many users will be visiting the page simultaneously and each user has a loop for checking the new contents in the database which is stored on the server-side).

Is there any other technique?

Your help would be highly appreciated!
Thanks!
Posted

In Visual Basic we would use WithEvents, but im not sure what the C#/PHP equivalant is, but a quick search turned up this result maybe it can help point you in the right direction.
 
Share this answer
 
Hi

1] Better to Provide Auto Update ON/OFF functionality along with it.
2] Default would be ON but it will GO to DB after some long Time to fetch Data.
3] Provide Refresh functionality to get Data Updated Data Manually.


Those or my suggestion's
 
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