C# .NET - Making a messenger in C#

Asked By Ismael on 15-Oct-11 03:21 PM
Hello I want to build a messenger using c# and .NET, i would like to embedd it in an asp.net website, is it really that hard?
Venkat K replied to Ismael on 15-Oct-11 11:24 PM
Check this one:
http://www.codeproject.com/KB/macros/msgaddin.aspx
Riley K replied to Ismael on 15-Oct-11 11:41 PM


First you need to have a database , a simple one



LINQ Chatroom table structure
  • User: Contains user information. Feel free to add your own fields like address, city, and so on.
  • Message: Will hold the messages sent by the users while chatting.
  • Room: Contains information about different rooms. This means that you can have more than one room. But for the purposes of this tutorial, we will only use one room for now.
  • LoggedInUsers: Will hold users logged-in/chatting in the chatroom(s). In short, if a user enters in a room, we will save their information here, in this way, we can show the list of users chatting in a specific room.
refer this link 

http://www.junnark.com/Blog/Detail/2

 You can use asp.net and AJAX and create a nice chatting website.

http://channel9.msdn.com/coding4fun/articles/Basic-Chat-Using-ASP-NET-AJAX

http://www.codeproject.com/KB/applications/AliAspNetChat.aspx

Regards

Anoop S replied to Ismael on 16-Oct-11 12:32 AM
With Remoting:

http://www.codeproject.com/useritems/ChatMasala.asp
http://www.codeproject.com/dotnet/dotnetchatapplication.asp

or
Have a look at the MSN Messenger SDK http://www.microsoft.com/downloads/details.aspx?FamilyID=3656f4de-1db2-4f6c-b278-abb1c5ca5934&DisplayLang=en.
dipa ahuja replied to Ismael on 16-Oct-11 04:25 AM
The project illustrates how to design a simple AJAX web chat application. 
We use jQuery, ASP.NET AJAX at client side and Linq to SQL at server side.
In this sample, we could create a chat room and invite someone
else to join in the room and start to chat.


Step 1.  Create an ASP.NET Web Application. In this sample it is "WebChat".

Step 2.  Right-click the App_Data directory, and click Add -> New Item ->
        SQL Server DataBase. In this sample it is "SessionDB.mdf".

Step 3.  Open the database file and create four tables.
        * tblChatRoom: store chat room data.
        * tblMessagePool: store the chat message data temporarily.
        * tblSession: store the user session data.
        * tblTalker: store the user data who in the chat rooms.
        The details columns for these tables, please refer to the SessionDB.mdf
        in this sample.

Step 4.  Create a new directory, "Data". Right-click the directory and click
        Add -> New Item -> Linq to SQL classes.(If you could not find that 
        template, please click the Data node of the tree view at the left
        hand.) In this sample, it is SessionDB.dbml.

Step 5.  Open the SessionDB.dbml and double-click the SessionDB.mdf, you will 
        see the database in the Server Explorer. Expand the SessionDB.mdf,
        expand the Tables folder, and select the four tables, and drag them
        all to the stage of the SessionDB.dbml.

http://code.msdn.microsoft.com/CSASPNETAJAXWebChat-c4c9b8fe
dipa ahuja replied to dipa ahuja on 16-Oct-11 04:27 AM
The project illustrates how to design a simple AJAX web chat application. 
We use jQuery, ASP.NET AJAX at client side and Linq to SQL at server side.
In this sample, we could create a chat room and invite someone
else to join in the room and start to chat.


Step 1.  Create an ASP.NET Web Application. In this sample it is "WebChat".

Step 2.  Right-click the App_Data directory, and click Add -> New Item ->
        SQL Server DataBase. In this sample it is "SessionDB.mdf".

Step 3.  Open the database file and create four tables.
        * tblChatRoom: store chat room data.
        * tblMessagePool: store the chat message data temporarily.
        * tblSession: store the user session data.
        * tblTalker: store the user data who in the chat rooms.
        The details columns for these tables, please refer to the SessionDB.mdf
        in this sample.

Step 4.  Create a new directory, "Data". Right-click the directory and click
        Add -> New Item -> Linq to SQL classes.(If you could not find that 
        template, please click the Data node of the tree view at the left
        hand.) In this sample, it is SessionDB.dbml.

Step 5.  Open the SessionDB.dbml and double-click the SessionDB.mdf, you will 
        see the database in the Server Explorer. Expand the SessionDB.mdf,
        expand the Tables folder, and select the four tables, and drag them
        all to the stage of the SessionDB.dbml.

http://code.msdn.microsoft.com/CSASPNETAJAXWebChat-c4c9b8fe
Suchit shah replied to Ismael on 17-Oct-11 02:27 AM
With Remoting:

http://www.codeproject.com/useritems/ChatMasala.asp

http://www.codeproject.com/dotnet/dotnetchatapplication.asp