如何在asp.net中创建私人聊天 [英] How to Create Private chat in asp.net

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

问题描述

嗨...
我被要求进行内部网络聊天.我的应用程序中有很多选项卡,例如主页",聊天",文章"等.聊天模块是我必须开发的.我的要求是这样的..


1)登录到Web应用程序的用户的用户名必须显示在列表中.
2)单击特定用户时,应该打开一个聊天窗口,在这里我可以与所选用户聊天.
3)如果我向用户发送聊天消息,并且如果他位于首页",文章"之类的其他选项卡中,则他必须收到一种弹出式警报.
4)单击警报消息后,用户应该可以直接打开其聊天消息,或者可以打开其聊天模块(选项卡)以查看其聊天消息.

问候,
Abdul

Hi...
I''m asked to develop an intra net chat. There are many tabs like Home, Chat, Articles etc in my application. Chat module is what i have to develop. My requirements are like this..


1) Who ever has logged into the web application their user names must be displayed in a list.
2) When a particular user is clicked, a chat window should open up where i can chat with the user i selected.
3) If i send a chat message to an user, he must recieve a pop up kind of alert if he''s in some other tabs like Home, Article.
4) On clicking the alert message the user should be able to open his chat message directly or he can open his chat module(tab) to view his chat message.

Regards,
Abdul

推荐答案

您必须创建一个可以与实际应用程序集成的应用程序/模块.您必须集中的要点是

You have to create an application / module which can be integrated with the actual application. Points you have to concentrate are

jeanuba写道:
jeanuba wrote:

1)谁登录了Web应用程序,其用户名必须显示在列表中.

1) Who ever has logged into the web application their user names must be displayed in a list.


您必须使用某种跟踪机制来存储已登录用户的列表.如果用户注销或超时,则必须使用从列表中删除用户.用户正在浏览的所有页面都必须对服务器进行ping操作,说用户在频繁间隔"中还活着.


You have to use some tracking mechanism to store the list of logged in users. You have to use remove the users from the list if they sign out or timed out. All the pages that the user is browsing has to ping back the server saying the user is alive in ''frequent intervals''.

jeanuba写道:
jeanuba wrote:

单击特定用户时,应该打开一个聊天窗口,在这里我可以与所选用户聊天.

When a particular user is clicked, a chat window should open up where i can chat with the user i selected.


创建一个弹出页面(聊天窗口),该页面可以使用Ajax与服务器进行通信.


Create a popup page(Chat Window) that can communicate the server using Ajax.

jeanuba写道:
jeanuba wrote:

如果我向用户发送聊天消息,则他必须接收弹出的警报,如果他在其他地方首页",文章"之类的标签.

If i send a chat message to an user, he must recieve a pop up kind of alert if he''s in some other tabs like Home, Article.


所有页面必须频繁间隔ping服务器以获取任何可用消息.如果有,请根据需要显示警报.


All the pages has to ping the server for any available messages at frequent intervals. If any, show the alert as you require.

jeanuba写道:
jeanuba wrote:

单击警报消息后,用户应该可以直接打开其聊天消息,或者可以打开其聊天模块(标签)以查看他的聊天消息.

On clicking the alert message the user should be able to open his chat message directly or he can open his chat module(tab) to view his chat message.


如果用户单击警报,它将打开带有消息的弹出窗口(聊天窗口).


If the user clicks alert, it will open the popup(Chat Window) with the messages.


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

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