Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Ajax C#4.0
First let me be honest - I haven't wrote any code for this - I am only looking for an advice... I am C# developer.
I am planning to develop an application (Web) and want automatic update like Facebook (FB), on FB when a friend post/comment, the page does not flicks, the time and posting of comments automatically. I looking for something like that - I am not doing a chat application. Explaining all will take time - It's a personal project.
 
A reference to reading material will be helpful, thanks.
Posted 28-Jan-13 12:43pm
Boipelo1.6K
Edited 28-Jan-13 13:11pm
v4
Comments
AspDotNetDev at 28-Jan-13 19:36pm
   
FYI, I deleted the text you posted as an answer, as it should have been posted as a comment on my answer instead. Also, good luck. :-)
Boipelo at 28-Jan-13 20:27pm
   
Thanks, I was also advised to do so on other posts. Long time I have been here and missed(didn't not of) changes - I also lost points for that! Thanks once more...

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

There are many ways to accomplish what you're after, so I'll just give a brief summary of one approach.
 
You'd use setTimeout or setInterval (in JavaScript) to periodically make AJAX calls to a web service to check for new content. When you get new content from the web service (perhaps in the form of JSON), you'd use JavaScript (perhaps jQuery) to update the DOM elements so the page shows the new content.
 
If you want reading material, I recommend Googling the above bolded terms. Probably best to read a book or two as well; perhaps one of them about AJAX and another that involves AJAX/web services.
 
ASP.NET MVC would be an alternative to web services, as it too can easily return JSON from the server via AJAX to be processed by JavaScript. For that, you'd want to look into returning JSON from action methods.
  Permalink  
Comments
member60 at 28-Jan-13 22:53pm
   
my 5!

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

  Print Answers RSS
0 Maciej Los 655
1 OriginalGriff 453
2 CPallini 239
3 CHill60 180
4 Sergey Alexandrovich Kryukov 175
0 OriginalGriff 6,092
1 Sergey Alexandrovich Kryukov 4,898
2 Maciej Los 3,159
3 Peter Leow 3,129
4 DamithSL 2,490


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100