如何创建聊天应用 [英] how to create chat applcation

查看:239
本文介绍了如何创建聊天应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建内部聊天应用程序.此聊天应用程序与每个与admin聊天的用户一样.

I want to create internal chat application.this chat application like every user chat with admin .

推荐答案

Google是您的朋友.它可以为您提供比以往更快(且批量)的结果.
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.


您好.
我做了一次.
通常,您需要一堂课.像这样的东西:
Hello.
I did it once.
Generally, you need a class. Something like this:
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;}
}


您还需要一个计时器控件(
查看此处)以每秒发送请求. (获取最新消息)

使用应用程序状态发送消息

您需要 AJAX 在后台更新页面,因为如果您不这样做,那么您的页面将会在输入消息时进行升级.

该程序应处理Application state(我建议使用List<Message>),并且用户应该能够看到其相关消息.

如果要将所有消息发送给一个人(ADMIN),则只需将所有ToUser设置为ADMIN

您必须开始对其进行编程,并且如果您有任何特定的技术问题,请询问.


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.


在CodeProject本身上查看大量聊天应用程序,是否 ASP.NET中的简单聊天应用程序 [ ASP.NET Ajax聊天应用程序 [使用C#.NET远程处理技术的全局文本聊天室应用程序 [ ^ ]
使用C#的TCP/IP聊天应用程序 [使用C#进行图片聊天 [在ASP.NET中建立基于AJAX的聊天室 [ ^ ]
聊天客户端服务器 [与美国直接投资进行聊天 [使用WCF服务和JSon进行ASP.NET聊天 [ ^ ]
使用ASP构建Web聊天应用程序. Net 3.5,LINQ和AJAX(在C#3.5或VB 9.0中) [使用AJAX的ASP.NET中的聊天应用程序(弹出Windows) [ ^ ]
使用ASP.NET Ajax构建基于Web的聊天 [ ^ ]
使用AJAX的ASP.NET中的聊天应用程序(弹出Windows) [ ^ ]
使用JavaScript和XML编写ASP聊天(第2部分) [ ^ ]
在C#中使用Web服务的聊天应用程序 [ ^ ]
具有可自定义GUI的Java聊天 [使用Jabber.Net的Google聊天桌面应用程序 [ ^ ]
使用AJAX的ASP.NET中的Web用户控件 [ ^ ]
聊天程序 [ ASP.NET中的简单聊天应用程序 [
See huge list of chat application on CodeProject itself, does google[^] broken at your side??

Simple Chat Application in ASP.NET[^]
ASP.NET Ajax Chat Application[^]
Global Text Chat Room Application using C#.NET Remoting Technology[^]
TCP/IP Chat Application Using C#[^]
Picture Chat Using C#[^]
Building an AJAX based chat room in ASP.NET[^]
Chat Client Server[^]
Chat With US DI[^]
ASP.NET Chatting using WCF Services and JSon[^]
Build a Web Chat Application using ASP.Net 3.5, LINQ and AJAX (in C# 3.5 or VB 9.0)[^]
Chat Application in ASP.NET Using AJAX (Pop-up Windows)[^]
Build a Web based Chat using ASP.NET Ajax[^]
Chat Application in ASP.NET Using AJAX (Pop-up Windows)[^]
Writing ASP Chat using JavaScript and XML (Part 2)[^]
Chat Application using Web services in C#[^]
Java Chat With Customizable GUI[^]
Google Chat Desktop Application using Jabber.Net[^]
Web User control in ASP.NET with AJAX[^]
Chat program[^]
Simple Chat Application in ASP.NET[^]


这篇关于如何创建聊天应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆