本 科 生 毕 业 论 文
题 目: 基于
Ajax
的网络聊天室开发
院 系: 信息科学与技术学院
专 业: 计算机科学与技术
学生姓名: 卢家圳
学 号: 05372013
指导教师: 李才伟(副教授)
二〇〇九 年 四 月
- ii -
摘 要
当前,Web 技术的不断发展使得 B/S 得以广泛地应用。随着 Ajax 技术的兴起,
Web 开发技术超越了传统 的开发模式, 发生了质的飞 跃。而微软公 司推出的
ASP.NET Ajax 框架与 ASP.NET 的结合,使得 Web 的开发方式在.NET 环境下更加简
单易用,页面交互性能也得到很大提高。Ajax 带来更好的用户体验。
本文的目的主要是研究 Ajax 的框架以及其应用,开发一个基于 Ajax 技术的网
络聊天室软件。ASP.NET Ajax 聊天室是一种实时的在线聊天工具。各个用户可以在
一个公共平台(一般为聊天室页面)上发表自己的言论、进行聊天。Ajax 聊天室与
传统的聊天室不一样之处在于:Ajax 聊天室是一种无刷新的聊天室。由于会用到
ASP.NET,因此会使用 Web Service(Web 服务)技术是网站层次化。用 Web 服务来
写网站服务端,ASP.NET 实现网页,而 Ajax 实现无刷新聊天。在系统的整个开发过
程中都采用了面向对象的技术,对 Ajax 聊天室应用程序的构成、需求分析、数据库
设计、Web 服务设计、页面设计等进行详细处理,并解决了用户是否在线问题。
本论文主要涉及 Ajax 和 Web 服务两种技术。在连接数据库和连接网页使用
Web 服务去做。Ajax 主要做的是传输聊天信息。总得说就是使用 ASP.NET 2.0、Web
服务技术和 ASP.NET Ajax 技术,以及 SQL Server 2005 数据库共同实现 Ajax 聊天室。
关键词:ASP.NET;Ajax ;Web 服务;聊天室
- i -
Abstract
At present, Web technology allows the continuous development of B/S can be widely
applied. With the rise of Ajax technology, Web development technology beyond the
traditional pattern of development, there has been a qualitative leap forward. Microsoft
introduced the ASP.NET Ajax Framework and ASP.NET combination makes Web
development in. NET environment more easy to use, interactive performance pages have
also been greatly improved. Ajax brings better user experience.
The purpose of this paper is to study a framework for Ajax as well as its applications,
the development of a network of technology-based Ajax chat room software. ASP.NET
Ajax is a real-time chat rooms online chat tool. Individual users can be at a public platform
(normally Chat page) on to express his or her freedom of speech, to chat. Ajax chat room
with the traditional chat rooms not the same as lies: Ajax Chat is a chat room without
refresh. Be used because of ASP.NET, so will the use of Web Service technologies are
hierarchical web. Using Web Service to write website service, ASP.NET(C#) to write
website, while the Ajax implement without refresh chat. In the system throughout the
development process has been adopted in object-oriented technology, Ajax Chat for the
composition of applications, needs analysis, database design, Web services design, page
design, etc. in detail to address and solve the problem of the user is online.
This paper mainly involves two kinds of Ajax and Web Service technology. Connect
at the database and connect using the Web Service to do the page. Ajax to do is transfer the
main chat information. In general, is to use ASP.NET 2.0, Web Service technology and
ASP.NET Ajax technology, as well as SQL Server 2005 database common implementation
Ajax chat room.
Keywords: ; Ajax; Web Service; Chat
- ii -
目 录
摘 要....................................................................................................................................................................I
ABSTRACT......................................................................................................................................................II
KEYWORDS: ASP.NET; AJAX; WEB SERVICE; CHAT..........................................................................II
第一章 前言........................................................................................................................................................1
第三章 AJAX 聊天室应用程序的系统设计...................................................................................................12
第四章 AJAX 聊天室应用程序实现与部署...................................................................................................21
第五章 总结与展望..........................................................................................................................................29
致谢...................................................................................................................................................................31
参考文献...........................................................................................................................................................32
- iii -
评论0