Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello Programmers, i would like to know how to code your apps. so that users in your database can send message to eachother just like the twitter or facebook website. I'm building a social site and i have already built the pages and include the graphics but i don't know how to make it happen. I want each member to have an inbox and also priviledge to send message to another user. Pls help me out. . . I don't know if it has to do with database.
Posted
Comments
[no name] 18-Feb-15 17:49pm    
I'm using sql and webmatrix
Sergey Alexandrovich Kryukov 18-Feb-15 18:08pm    
It is not a good question; it's hard to figure out what exactly you are missing. The sites with such functionality are quite common, so it's hard to see what you are missing. And writing the whole prototype to explain all the detail for you does not sound realistic. If you have no idea at all, probably you need to learn technologies and programming a bit more, until you grow to that required of confidence.
—SA
[no name] 19-Feb-15 7:15am    
I have done the backend database for registration & login. I want to know how the registered members send message to eachother
[no name] 12-May-15 14:31pm    
Ok, for example, you have the interface structured out: receiver, sender, subject and messageBody.
Now, my question is when you decide to use signalr, how is it possible that when you enter the name of the user to send the message to, signalr knows that particular sender and sends the message to its message board.
From what i understand, signalr broadcast to all users connected and not a particular user

1 solution

Your requirements and the technology which you are using are not clear.
In the case you need a "realtime" push mechanisme, signalr could be an option:

[SignalR]
 
Share this answer
 
Comments
[no name] 4-May-15 14:46pm    
Hello, please i want to edit my profile. With linq i can query the database to retrieve the profile details but when i click on edit, it simply gives an error. The url is displaying "profile/edit/1" but its like that pattern doesn't work since in my index i changed it to not return a list. Below, is what i have tried:
public ActionResult Index()
{
var spc = (from d in db.profiles.ToList()
where d.username == User.identity.Name
select new profile()
{name = d.name,
// other properties
});
return view(db.profile.ToList());
}

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