Facebook Wall feature using ASP.Net

I want to create something like a facebook wall on my social site. I want to store messages in a sql database, and this should be pretty simple. What I'm looking for is a good way to show posts? I think I don’t even know where to start, because I can only think about using a loop to display asp:textboxes. Which is obviously wrong.

I want the page to display several posts, which should include:

  • The user who sent the message
  • Published text
  • date sent
  • and if I want to go crazy ... a means of deleting / editing a message.

I really don’t know how to implement this concept, so any ideas would help a lot.

+3
source share
3 answers

To get started, check out this article from asp.net on Repeater control , or this great article.

The Repeater control allows you to bind data to a list of objects, and then define a single template to display this object. Then ASP.NET will process it as many times as necessary. You can write code to handle deletion and editing, as if there was only one instance on the page.

+2
source

jquery, ajax. html ( , , ).

, jquery pull . json, json jquery , json html html

; -)

+1

ASP.NET . A Repeater, DataGrid, GridView - , . ASP.NET MVC, foreach.

, ListView.

0

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


All Articles