Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
I want to create internal chat application.this chat application like every user chat with admin .
Posted
Comments
kodeLogic 4-Jun-12 6:56am    
Try this http://www.codeproject.com/Articles/8307/Simple-Chat-Application-in-ASP-NET and this http://www.junnark.com/Blog/Detail/2
deepureddy18 4-Jun-12 7:02am    
both url is not suitable to my chat application .i want to create chat application like for doctor website.patients will come and chat with doctor.here only one doctor and he is the admin to the website .

Google is your friend. It can give you results much faster (and in bulk) than you would ever get.
https://www.google.com/search?q=how+to+create+chat+applcation+asp.net&rls=com.microsoft:en-GB&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&hl=en[^]

If you are still stuck, come to this forum and people here would be glad to help you.

btw, why to RE-invent the wheel when there are thousands of similar apps available.
 
Share this answer
 
Comments
Shahin Khorshidnia 4-Jun-12 7:19am    
My +4 Good suggestion (reffering to google) but I think you could help him/her to write his/her own chat application instead of this.
Prasad_Kulkarni 4-Jun-12 7:35am    
Good answer +5!
Hello.
I did it once.
Generally, you need a class. Something like this:
C#
public class Message
{
   public string Text{get;set;}
   public bool IsRead{get; set;}
   public User FromUser{get; set;}
   public User ToUser{get; set;}
   public DateTime SentTime{get; set;}
}

You also need a Timer Control (Look here) to send requests each seconds. (Getting the newest messages)

Use Application State to send Message

You need AJAX to update the page on background because if you don't then your page will be upgrading while you are typing a message.

The program should process the Application state (I suggest a List<Message>) and users should be able to see their related messages.

If you want to send all messages to one person (ADMIN) then you can simply set all ToUsers to ADMIN

You must start programming it and if you have any specific technical questions, please ask.
 
Share this answer
 
v5
Comments
VJ Reddy 4-Jun-12 19:48pm    
Good answer. 5!
Shahin Khorshidnia 5-Jun-12 0:36am    
Thank you very much VJ
 
Share this answer
 

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