聊天应用程序ina sp.net [英] Chat application ina sp.net

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

问题描述

我正在使用asp.net中的聊天应用程序。每次新消息到达时,窗口都会刷新,之前的消息会被删除。我的问题是,如何在不刷新聊天窗口的情况下获取最新消息并保留较旧的消息...

????

I am working on chat application in asp.net. Each time new messages arrived, window get refreshed and previous messeges get deleted. my problem is that, how to fetch latest messages and keep older messeges as it is without refreshing chat window...
????

推荐答案

使用 ASP.NET AJAX [ ^ ]控件或 jQuery [ ^ ]。



你可以使用AJAX UpdatePanel 更新聊天窗口,每次都会更新以前数据完整的新数据。



了解如何通过在Google中搜索示例来使用AJAX,您可以克服您的问题。
Use ASP.NET AJAX[^] controls or jQuery[^].

You can update the chat window by using AJAX UpdatePanel, which will be updated every time with new data where previous data will be intact.

Learn how to use use AJAX by searching examples in Google and you can overcome your issue.


这篇关于聊天应用程序ina sp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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