What is the best way to implement streaming conversations like Facebook Wall in .NET?

I'm just wondering what is the best way to implement a multi-threaded conversation such as Wall Wall, where comments are displayed under each post and old comments are crumbling and expanding. My instinct is to use a nested datalist, but I think it can affect performance.

+3
source share
2 answers

I would like to use ASP.NET MVC instead of web forms. I would load the first few message servers with the initial page load, and then look at the implementation of the client solution using AJAX with jQuery for more entries - there is an example of this here .

+2
source

I would use 2 DataLists.

DataListA will only show the top 5 comments, but under DataListA there will be a LinkButton with the text "### more comments ...". (This LinkButton will be hidden if it has only 5 or fewer comments)

When the user clicks on LinkButton, DataListA hides and displays DataListB.

DataListB shows all comments, not just the first 5.

LinkButton, , "hide ### comments...", DataListB.

Cache ASP.NET, .

+1

Source: https://habr.com/ru/post/1749290/


All Articles