ASP.NET校园新闻发布系统I摘要ASP.NET是新一代Web应用程序开发平台,它是一个已编译的、基于.NET的开发环境,它提供了生成企业级应用程序所必需的全部服务,基于.NETFramework生成,整个框架都可用于任何ASP.NET应用程序。可以使用任何与公共语言运行库(CLR)兼容的语言(包括VisualBasic.NET、C#和JScript.NET)来创建应用程序。该系统使用ASP.NET(C#语言)和ADO.NET技术开发,实现了网站新闻的动态管理,使得对信息的管理更加及时、高效,提高了工作效率,具有一般新闻系统的功能,主要包括前台新闻查看区和后台管理区,可为学校各部门发布新闻,为校园网站提供新闻发布与管理的服务。关键词ASP.NETADO.NET新闻管理Browser/ServerASP.NET校园新闻发布系统II目录引言······················································································································11研究背景·············································································································21.1国内外研究现状及发展趋势···············································································21.2研究目的、意义和范围·····················································································22需求分析·············································································································42.1需求分析········································································································42.2新闻系统的性能需求························································································52.3运行环境要求··································································································52.3.1设备·········································································································52.3.2支持程序···································································································53系统结构设计·······································································································63.1新闻系统的功能模块简介··················································································63.2新闻系统的模型结构························································································73.3系统的数据流图·······························································································74系统的数据库设计································································································84.1实体图设计·····································································································84.2数据表设计·····································································································95系统功能模块设计································································································85.1各主要窗体页的图形界面介绍···········································································115.2WEB.CONFIG文件配置····················································································125.3系统部分重要功能及其代码·············································································135.3.1Web用户控件···························································································135.3.2添加发布新闻··························································································135.3.3用户注册································································································145.3.4用户修改密码··························································································14总结····················································································································16参考文献··············································································································17ASP.NET校园新闻发布系统1引言JSP(JavaServerPages)是SunMicrosystems公司所倡导,许多公司参与一起建立的一宗动态网页技术标准。它在HTML代码中,插入JSP标记(tag)及Java程序片段(Scriptlet),构成JSP页面,其扩展名为.jsp。当客户端请求JSP文件时,Web服务器执行该JSP文件,然后以HTML的格式返回给客户端。ASP.NET校园新闻发布系统21研究背景1.1国内外研究现状及发展趋势传统的网站新闻管理方式有两种:一种是静态HTML页面,更新信息时需要重新制作页面然后上传页面并修改相应链接,这种方式因为效率太低已不多用;到了今天,更是发展出了.Net和J2EE两大阵营。Microsoft的.NET平台是一个强调多语言间交互的通用运行环境。尽管.NET的设计者试图以.NET平台作为绝大多数Windows应用的首选运行环境,但.NET首先吸引的却是Web开发者的目光。,.NET平台,尤其是.NET平台中的ASP.NET的确不失为Web开发技术在Windows平台上的一个集大成者。另一种J2EE则是纯粹基于Java的解决方案。他的三个关键元素是Servlet、JSP和EJB。J2EE体系及相关的软件产品已经成为了Web服务端开发的一个强有力的支撑环境。客户端技术与服务器技术的发展,使得互联网有了更多的展示方案,其相关应用也得到了不断的发展与进步。新闻发布系统也随着Web技术发生了颠覆式的改变。如今,众多新闻门户每日围绕着我们,使我们轻松的可以了解天下事。JSP(JavaServerPages,动态网页技术标准),是建立动态Web应用程序而重新打造的全新技术,其主要特色包括:●语言的独立性;●一次编译,随处运行;●将内容的生成和显示进行分离;●强调可重用的组件;●采用标记简化页面开发;●提高了执行效率;●简化部署与组态的操作;●支持客户端类型;●支持下一代的Web服务;●增进适用性和延展性;●JSP的适应平台更广;●更多的支持工具;●更佳的安全机制;●会话(Session)可以跨进程、跨机器。由于JSP的众多优点,技术发展和各种客观实际的需要,该系统选用了JSP来开发设计,实现了对行业新闻的动态管理操作,使得对新闻信息的发布与管理ASP.NET校园新闻发布系统3更加及时、高效,提高了工作效率。1.2研究目的、意义和范围随着Internet的普及,越来越多的企业建立了自己的网站,企业通过网站可以展示产品,发布最新动态信息,与用户进行交流和沟通,与合作伙伴建立联系,以及开展电子商务等。其中新闻管理系统是构成企业网站的一个重要组成部分,它担负着双层作用:一方面可以用来动态发布有关新产品或新开发项目;另一方面又可以及时向顾客公告企业经营业绩、技术与研发进展、特别推荐或优惠的工程项目、产品和服务,从而吸引顾客,扩大顾客群。该系统使用JSP技术开发,实现了网站新闻的动态管理,使得对信息的管理更加及时、高效,提高了工作效率。该新闻系统具有一般新闻系统的功能,主要包括前台新闻查看区和后台管理区,可为个人网站发布新闻,为校园网站提供新闻发布与管理的服务。该系统是基于B/S(Browser/Server,浏览器/客户端)模式实现,基于JSP动态网站开发设计,主要实现对行业新闻的发布与管理功能,对新闻内容信息的浏览阅读等。随着Internet/Intranet技术的兴起,将原本在单机或本地局域网上运行的数据库系统移植到因特网中,即开发基于B/S模式的新一代MIS(ManagementInformationSystem,管理信息系统)系统,正成为技术发展的趋势。为了保证系统性能的高效性、可扩展性,以及达到数据共享和网络化管理的目的,本系统采用B/S体系结构进行设计开发。ASP.NET校园新闻发布系统42需求分析2.1需求分析该系统的用户为校园网站,需要经常发布一些新闻,如何能有效地管理和发布新闻呢?最初用户的需求为:“该新闻系统具有一般新闻系统的功能,同时具有新闻审核和不同管理员不同管理权限的功能”。通过对其它一些新闻系统的调查发现,一般新闻系统功能如下:◆前台按分类显示新闻;◆搜索新闻;◆后台管理: