Click here to Skip to main content
15,917,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all ,

I have implemented a comment and reply module but it is still missing the realtime update when a new comment is posted.So the comment will appear to other users without refresh like facebook.I know that i should ajax,but is sql dependency something that i should use ?

Thanks.
Posted

1 solution

Its not that difficult which looks like. You have two questions.

One how to refresh your UI and simple answer is use AJAX (XMLDom / ASP.Net AJAX / AJAXToolkit etc...).

And SQLDependency implementing observer events, when a new comment is coming to data it should notify.

You should use UpdatePanel and timer from ASP.Net AJAX.

Regards
Rushi
 
Share this answer
 
Comments
HuynhVanLuan 7-Dec-11 3:49am    
uu

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