江西信息应用职业技术学院计算机软件专业毕业论文第1页共31页目录前言··························································································································3第一章研究背景···················································································错误!未定义书签。1.1国内外研究现状及发展趋势·····························································错误!未定义书签。1.2研究目的、意义和范围···································································错误!未定义书签。第二章课题分析···················································································错误!未定义书签。2.1需求分析·····················································································错误!未定义书签。2.2新闻系统的性能需求······································································错误!未定义书签。2.3相关技术与开发工具介绍··························································错误!未定义书签。2.3.1VisualStudio2008的介绍·························································错误!未定义书签。2.3.2SQL查询语言及应用···································································错误!未定义书签。第三章系统结构流程·············································································错误!未定义书签。3.1新闻系统的模型结构······································································错误!未定义书签。3.2新闻系统的功能模块简介································································错误!未定义书签。第四章使用技术的介绍··········································································错误!未定义书签。4.1.NETFRAMEWORK概述························································································124.2ASP.NET、ADO.NET和C#语言简介······································································13第五章新闻系统的主要开发过程······························································错误!未定义书签。5.1数据库设计········································································································155.2各主要窗体页的图形界面介绍···························································错误!未定义书签。5.3页面的风格设计··································································································175.4系统配置···········································································································185.4.1WEB.CONFIG文件配置························································································185.4.2配置发布主页·······························································································185.5系统部分重要功能及其代码··················································································195.5.1Web用户控件································································································································195.5.2通用类代码···································································································································205.5.3添加发布新闻·······························································································································275.5.4用户注册·······································································································································29第六章总结与展望.............................................错误!未定义书签。致谢......................................................................30参考文献.....................................................................31江西信息应用职业技术学院计算机软件专业毕业论文第2页共31页新闻发布管理系统摘要:ASP.NET是新一代Web应用程序开发平台,它是一个已编译的、基于.NET的开发环境,它提供了生成企业级应用程序所必需的全部服务,基于.NETFramework生成,整个框架都可用于任何ASP.NET应用程序。可以使用任何与公共语言运行库(CLR)兼容的语言(包括VisualBasic.NET、C#和JScript.NET)来创建应用程序。该系统使用ASP.NET(C#语言)和ADO.NET技术开发,实现了网站新闻的动态管理,使得对信息的管理更加及时、高效,提高了工作效率,具有一般新闻系统的功能,主要包括前台新闻查看区和后台管理区,可为学校各部门发布新闻,为校园网站提供新闻发布与管理的服务。关键词ASP.NETADO.NET新闻管理Browser/Server江西信息应用职业技术学院计算机软件专业毕业论文第3页共31页前言ASP.NET是微软公司最新推出的一种统一Web开发平台,与最新的数据访问技术ADO.NET一起可构建出强大、安全和可靠的企业级Web应用程序。ASP.NET的语法在很大程度上与ASP兼容,同时它还提供一种新的编程模型和结构,用于生成更安全、可伸缩和稳定的应用程序。采取了ASP.NET技术的系统在性能上有了很大的改善,主要表现在以下几方面:●由于ASP页面每次打开都必须经过先编译后解释的过程,所以页面在反复打开时速度没有任何提升,而ASP.NET页面只需要一次编译后不需要重新编译,直到该页面被修改或Web应用程序重新启动。这使得在多次访问时速度有了极大的提升;●由于ASP没有提供任何输出数据为内容的元件,所以在使用ASP撰写数据库页面时只能借助ADO的RecordSet对象逐笔读取记录,而ASP.NET通过ADO.NET提供的DataGrid等数据库元件可以直接和数据库联系;●ASP.NET支持应用程序的实时更新,管理员不必关掉网络服务器或者甚至不用停止应用程序的运行就可以更新应用文件。应用程序文件永远不会被加锁,因此甚至在程序运行时文件就可以被覆盖,当文件更新后,系统会温和地转换到新的版本;●ASP.NET采取CodeBehind(代码分离)技术方式编写代码使得代码更易于编写,结构更清晰,降低了系统开发与维护的复杂度和费用。江西信息应用职业技术学院计算机软件专业毕业论文第4页共31页第一章研究背景1.1国内外研究现状及发展趋势传统的网站新闻管理方式有两种:一种是静态HTML页面,更新信息时需要重新制作页面然后上传页面并修改相应链接,这种方式因为效率太低已不多用;另一种是基于ASP和脚本语言,将动态网页和数据库结合,通过应用程序来处理新闻,这是目前较为流行的做法。但是由于ASP技术本身的局限性使得系统有一些不可克服的缺陷。ASP.NET不仅仅是下一版本的ASP(ActiveServerPages,动态服务器页面),而且是建立动态Web应用程序而重新打造的全新技术,其主要特色包括:●语言的独立性;●简单的开发操作,分离程序代码和网页内容;●提高了执行效率;●简化部署与组态的操作;●支持客户端类型;●支持下一代的Web服务;●增进适用性;●增进延展性;●更多的支持工具;●更佳的安全机制;●会话(Session)可以跨进程、跨机器。由于ASP.NET的众多优点,技术发展和各种客观实际的需要,该系统选用了ASP.NET来开发设计,实现了对校园新闻的动态管理操作,使得对新闻信息的发布与管理更加及时、高效,提高了工作效率。江西信息应用职业技术学院计算机软件专业毕业论文第5页共31页1.2研究目的、意义和范围随着Internet的普及,越来越多的企业建立了自己的网站,企业通过网站可以展示产品,发布最新动态信息,与用户进行交流和沟通,与合作伙伴建立联系,以及开展电子商务等。其中新闻管理系统是构成企业网站的一个重要组成部分,它担负着双层作用:一方面可以用来动态发布有关新产品或新开发项目;另一方面又可以及时向顾客公告企业经营业绩、技术与研发进展、特别推荐或优惠的工程项目、产品和服务,从而吸引顾客,扩大顾客群。该系统使用ASP.NET(C#语言)和ADO.NET技术开发,实现了网站新闻的动态管理,使得对信息的管理更加及时、高效,提高了工作效率。该新闻系统具有一般新闻系统的功能,主要包括前台新闻查看区和后台管理区,可为学校各部门