对于.NET专家,我有一个疑问请给我你的建议 [英] For .NET experts,i have a doubt please give me your suggesstions

查看:93
本文介绍了对于.NET专家,我有一个疑问请给我你的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过在我的系统中使用会话来创建聊天简单聊天应用程序,当我打开浏览器并登录时,我转到我的聊天页面,当我输入并按下发送按钮文本转到聊天框时它很好但是当我打开新的浏览器时并请求相同的网址加载新鲜没有显示任何历史记录聊天............



怀疑: -



1.假设我在服务器上托管了这个,当几个成员登录和不同的机器,他们将正常聊天(他们将看到谁在键入和他们正在键入的内容)..它的工作与否...........



2.如果不能解决这个问题......

i created chat simple chat application by using sessions in my system ,when i open my browser and login i goes to my chat page ,when i type and press send button text goes to chating box it's fine but when i open new browser and request same url loading fresh not showing any history chat ............

doubts:-

1.for suppose i hosted this one on server when several members login and different machines and they will chat properly(they will see the who is typing and what they are typing)..it's work or not...........

2.if it is not work how to solve this one....

推荐答案

这是一个你想要实现的群聊吗?会话与用户绑定,每个用户(浏览器实例)都有自己的会话,因此用户A无法看到用户A会话中的任何内容。如果您希望所有用户都能看到聊天记录,那么请使用Application对象而不是会议。只有一个Application对象,它在所有用户中都很常见。在编码方面没有真正的区别,但要确保你理解应用程序锁定(谷歌asp.net锁定应用程序对象)
Is it a group chat you're looking to implement? The session is tied to the user and each user (browser instance) has their own session so anything in user A's session can't be seen by user B. If you want all users to see the chat history then use the Application object rather than the Session. There is only one Application object and it is common across all users. In terms of coding there is no real difference, but make sure you understand application locking (google "asp.net locking the application object")


你知道为什么你被投票?

1)因为你的问题无法回答。实际上它可能是:这一切都取决于你,你如何编码和编码。当然可以使用asp.net和sql server进行聊天应用程序。那里有许多成功的实现。如果你想知道你能做到吗?好吧,如果你提出这样的问题......我有疑虑...

2)我们得到了第二个原因:什么阻止你为其中一个搞定,请查阅代码和从中学习? Lazyness?或者你的地方没有goole?其中只有一个就在这里,在CP:

基于ASP / SQL Server的聊天程序 [ ^ ]
Do you know why you got downvoted?
1) Because your question can't be answered. Actually it can be: it all depends on you, on how and what you code. Of course a chat application using asp.net and sql server can be made. There are many successfull implementations out there. If you want to know you can do it? Well, if you ask such questions... I have my doubts...
2) And we got to the second cause: what is stopping you to loog for one of them, consult the code and learn from it? Lazyness? Or is goole not available at your place? Just one of them right here, at CP:
ASP/SQL Server Based Chat program[^]


这篇关于对于.NET专家,我有一个疑问请给我你的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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