The Design and Implementation of ASP Web Site
News Management Systems
Abstract
The use news of ASP and SQL technology news site management system, to achieve the dynamic management of the news Web site, making the management of information more timely, efficient, improve the work efficiency. At the same time, the development of systems theory, systems and design features are introduced.
[ Key word ] ASP, SQL, news management, database
With the popularization of Internet, more and more companies set up their own WWW sites, enterprises can display products through the website, publishing the latest developments, with users sharing and communication to establish contact with partners, as well as e-commerce. Information Management System which is an enterprise Web site an important part of it bears a double role, on the one hand, the dynamic can be used to release the new product or new development projects, on the other hand, the timely notice to their customers business performance, Progress in technology and development, in particular, recommend or preferential projects, products and services to attract customers, expand customer base.
Management of traditional news sites in two ways, one static HTML page,
update the information needed to re-creat the page and then upload the page and modify the corresponding links, the efficiency of this approach is too low because we have little use. The second is based on ASP and scripting languages, dynamic Web pages and databases, through the application of procedures to deal with news, this is way more popular. However, due to limitations of ASP allows the system performance has been greatly improved, the main performance in the following aspects:
1. ASP page to open as a result of each must be compiled to explain the process, so when the page opens in the rate of repeated there is no upgrade, and only need a ASP.NET page do not need to recompiled until the page has been modified or Web Application process restarted. This makes the speed in a number of visits has greatly improved.
2. As the ASP does not provide any output data for the content of the components, so writing a database using ASP page can use the Record Set Object ADO to read records of transaction, a database using ASP page can use the Record Set Object ADO to read records of transaction, while the ASP provided through the DataGrid, such as ADO.NET database and database components can be directly Contact.
3. ASP support real-time application updates. Administrators do not have to turn off the network server or even do not have to stop running the application can update the application on file. Application document is updated, the system will convert to new moderate version.
4. ASP take the “code-behind” approach to the preparation of the code makes code easier to prepare, structure more clearly, reducing the system development and maintenance of the complexity and the cost of.
1 System Development Principle
1.1 The System Architecture Model of ASP-based Technology
ASP is a three-tier system structure: UI Layer, Business Logic Tier and data layer.
UI layer is responsible for interaction with the user, receiving user input and server-side data from present to clients.
Business Logic Tier is responsible for receiving requests from browser requests to the data layer and at the same time the results of the request sent to the browser. It consists of Web Forms, XML Web services and service composition components. Web Forms ASP.NET which is the core of the application, it is presented to customers based on data and information an well as to respond to an deal with customers and display interactive Web form generated based on information and data.
1.2 The principle of access to the database ADO.NET
Connected with the database, ADO.NET provide the following three kinds of
ways: through ODBC connected; connected through OLEDB; directly connected with the SQL Server. Application of three kinds of ways as a result of differences in levels, making the efficiency form low to high, to low independence. Connected to the for data processing, there are two kinds of ways, that is, through a Dataset to the isolation of heterogeneous data sources, and the other is a stream to read from the data source(Data Reader mode).
Traditional application is to create a connection to the database, in the process is running the whole way to maintain connections to the design.ASP.NET taken disconnected mode data structure. When a browser requests a page to web server to deal with this request, the requested page and send to your browser, and then connection was disconnected until the next browser request issued.
ADO.NET Another innovation is the introduction of a data set (Dataset). A data set is the relationship between memory map to provide high-speed data butter. Data set of data sources know that they can be adopted by the program or transferred from the data warehouse data were generated, to fill. Regardless of where the data acquisition, data sets are the same procedure through the use of templates to be operated, and it’s potential to use the same data butter.
2 Systems Functional Designs
2.1 Systems Function Structures
The news management system in Windows 2000 Server operating system
platforms, Web server IIS, the database server for Microsoft SQL Server2000, development tools used in Microsoft Visual Studio. NET and DreamWeaver. Its work processes as follows: the user login through the authority to determine the general user can only browse, read and query information for news management module input, modify, and delete operations. In addition to registered users outside the system administrator can only be recorded on its own news operation for excision.
2.2 Systems Function Characteristics
(1)Simple, user-friendly: complete control of page layout, making information easier entry work; many options including news categories, such as the source of departments only need to clear their own operations.
(2)Can be seen immediately: the handing of the press (including the entry, modify, delete) will be the corresponding column on the home page is displayed to “immediate release, immediate results” function.
(3)Function: include common site in all aspects of information management: information input, browse, delete, modify, search and other aspects, the full realization of the Web site of the real-time information management requirements.
(4)To facilitate transplantation: for different enterprises, with some slight modifications need to be able to develop for the company’s Web site features
news management system.
3 Systems Detailed Designs
Core functions of the system through a number of functional modules achieved. Specific design process is as follows:
(1)System login: The module responsible for the user are divided into general users and registered to achieve the management of user right.
(2)News View: The module is responsible for all the news page web site lists information, including the title, type, source and date field departments, and each title has been made news a hyperlink, click the page they will be able to Jump news reader.
(3)News reader: in other pages or click the title link to read into the news pages, at this time, detailed information of each information will be removed, including the content, title, keywords, and relatively fixed in accordance with the format placed in different pages region, the use of all the news about same page layout, only the contents of the field corresponding to different In addition, the location of other pages can be dynamically placed in other components, such as web site logo, such as the page banner ads link to pictures, this can be easily to achieve the effect of illustrations in reading.
(4)News Inquiry: The module provides a press inquiry, type to be selected to
find the content and classification of information can quickly find the information in line with the condition and results output.
(5)News Management: The module listed in the registry is responsible for the registration page the user has issued a news and information and did not delete, the user can press to delete the article, modify. In addition to non-news publisher is not outside the system administrator has the authority to deal with information which, so different users access to this page will display different content.
(6)News entry and modification: a press registered users need to input the content, including title, keyword, type, source of departments, such as release date, at the same time from the login module to be user name, this information will be saved into the database. The module is also responsible for editing the updated state, then, it will light the Title filed values on the page to initialize the control.
Reference
[1] Fawas A.Masoud,Dana H.halabi,Deema H.Halabi.asp.net frameworks and JSP frameworks in model view controller implementation.IEEE,2006,3593-3598.
[2] Ng.C.S.P,Gable,G,G,Chan,T.Z.An ERP-client benefit-oriented maintenance taxonomy.Journal of System s and softw are,2002.
[3]Yanlei Wang,Chunliang Chen,A New function Modeling Method and IIS Application in MIS Proceedings of the 2006 IEEE International Conference on
Information A cquisition,weihai,shandong,China.August 20-23 2006,:441-445.
[4]Mohanmad Jafar Tarokh,Javad Soroor.Supply Chain Management Information Systems Critical Failure Factors.IEEE,2006,:425-431
ASP的网站新闻管理系统的设计与实现
摘要
利用ASP和SQL技术开发的网站新闻管理系统,实现了网站新闻的动态管理,使得对信息的管理更加的及时、高效、提高了工作效率。同时对系统的开发原理、系统的功能特点和设计方案进行了介绍。
【关键字】ASP,SQL,新闻管理,数据库
随着Internet的普及,越来越多的企业建立了自己的WWW网站,企业通过网站可以展示产品,发布最新动态,与用户进行交流与沟通,与合作伙伴建立联系,以及开展电子商务等。其中新闻管理系统是构作用,一方面可以用来动态发布相关新产品或新开发项目,另一方面又可以及时向客户公告企业经营业绩、技术与研发进展、特别推荐或优惠的工程项目、产品和服务,从而吸引顾客,扩大顾客群。
传统的网站新闻管理方式有两种,一是静态HTML页面,更新信息时需要重新制作页面然后上传页面并修改相应链接,这种方式因为效率太低已不多用。二是基于ASP和脚本语言,将动态网页和数据库结合,通过应用程序来处理新闻,这是目前较为流行的做法。但是由于ASP本身的局限性使得系统有一些不可克服的缺陷,而采取了ASP.NET技术的
系统性能上有了很大的改善,其主要表现在以下几方面:
1、由于ASP页面每次打开都必须经过先编译后解释的过程,所以页面在反复打开时速度没有任何提升,而ASP.NET页面只需要一次编译后不需要重新编译,直到该页面被修成或Web应用程序重新启动。这使得在多次访问时速度有了极大的提升。
2、由于ASP没有提供任何输出数据为内容的元件,所以在使用ASP撰写书籍库页面时只能借助ADO的Record Set对象逐笔读取记录,而ASP通过ADO.NET提供的DataGrid等数据库元件可以直接和数据库联系。
3、ASP支持应用程序的实时更新。管理员不必关掉网络服务器或者甚至不用停止应用程序的运行就可以更新应用文件。应用程序文件永远不会被加锁,因此甚至在程序运行时文件就可以被覆盖。当文件更新后,系统会温和地转换到新的版本。
4、ASP采取“code-behind”方式编写代码是的代码更易于编写,结构更清晰,降低了系统的开发与维护的复杂度和费用。
1 系统的开发原理
1.1基于ASP技术的系统结构模型
ASP机构是一个三层系统:UI层、业务逻辑层和数据层。
UI层负责与用户交互,接接受用户的输入并将服务器当传来的数据呈现给客户。
业务逻辑层负责接收浏览器传来的请求并将请求传给数据层,同事将请求处理结果发
给浏览器。它由Web表单、XML Web服务和组件服务组成,其中Web表单是ASP.NET应用程序核心所在,它是向客户呈现数据和信息的基础,也实行阿英和处理客户与显示的Web表单交互生成的信息和数据基础。
数据层是通过ADO.NET操纵数据为事务逻辑层提供数据服务,如存储书籍操作结果、返回数据检索结果等。
1.2 ADO.NET访问数据库的原理
与数据连相连,ADO.NET提供了如下3种方式:通过ODBC相连;通过OLEDB相连;直接与SQL Server相连。3种方式由于应用层次的差异,使得效率由低到高,性由高到低。对于相连数据库的数据处理,也有2种方式,即一种是通过Dataset来隔离异构的数据源,另一种是以流方式从数据源读取(Data Reader方式)。
传统的应用程序是通过建立到数据库的连接,在程序的整个运行过程中维护等连接的方式来设计的。ASP.NET采取了断开连接方式的数据结构。当浏览器向Web服务器请求网页时,服务器处理这个请求,并将所有请求的网页发送给浏览器,然后连接就被断开,直到浏览器发出下一个请求。
ADO,NET的另一个创新是引入了数据集(Dataset)。一个数据库是内存中提供数据关系图的高速缓冲区。数据集对数据源是通过使用同样的程序模板而被操作的,并且它使用相同的潜在的数据缓冲区。
2 系统的功能的设计
2.1 系统的功能结构
该新闻管理系统可以在Windows 2000 Server操作平台上运行,Web服务器为IIS,数据库服务器为Microsoft SQL Server2000,开发工具采用Microsoft Visual Studio.NET和DeamWeaver。其工作流程为:用户登录通过权限判断,普通用户只能浏览、阅读和查询新闻,注册用户除了可以完成普通用户的操作外,还可以进入新闻管理模块进行新闻录入、修改和删除的操作。注册用户除系统管理员只能对自己录入的新闻进行删改操作。
2.2 系统功能的特点
(1)操作简单、界面友好:完全控制式的页面布局,是的新闻的录入工作更简便;许多选项包括新闻类别、来源部门等只需要点击鼠标就可以完成;另外,跟踪出现的提示信息也让用户随时清除自己的操作情况。
(2)即时可见:对新闻的处理(包括录入、修改、删除)将立即在主页的对应栏目显示出来,达到“即时发布、即时见效”的功能。
(3)功能完善:包括常见网站的新闻挂历的各个方面;新闻录入、浏览、删除、修改、检索等各个方面,完整地实现了网站对即时新闻的管理要求。
(4)方便移植:针对不同的企业,只需要稍作修改就可以开发出适合本企业特点的网站新闻管理系统。
3 系统的详细设计
系统的主要功能是通过几个功能模块来实现的。具体的设计过程如下:
(1)系统登录:该模块负责将用户分为普通用户和注册用户来实现用户权限的管理。
(2)新闻浏览:该模块负责分页列出网站所有新闻的信息,包括标题、类型、来源部门字段及发布日期,每条新闻的标题被做成一个超链接,点击它们就能跳转页面进行新闻阅读。
(3)新闻阅读:在其他页面中点击标题链接即进入新闻阅读页面,此时每条新闻的详细信息将被取出,包括内容、标题、关键字等,并按照相对固定的格式放置在页面的不同区域,所有新闻使用大致相同的页面布局,只是个字段对应的内容不同而已,另外,页面其他位置,可以动态放置其他元件,如网站标志logo、页面广告banner等链接图片,这样可以容易地实现图文并茂的阅读效果。
(4)新闻查询:该模块提供了新闻查询功能,输入待查找的内容及选定分类信息可以快速地找到符合条件的新闻,并输入查询结果。
(5)新闻管理:该模块负责分页罗列登录的注册用户曾发布过其为删除的新闻信息,用户可以对该条新闻进行删除、修改。非新闻发布者除系统管理员外不具有对该条新闻的处理权限,所以通用户进入此页面将显示不同的内容。
(6)新闻录入和修改:注册用户录入一条新闻所需要的内容,包含标题、关键字、类型、来源部门、发布日期等,同时从登录模块得到用户名,这些信息将被写入数据库中保存。该模块还负责编辑状态下的更新,这时它将根据取得的Title字段值对页面空间初始化。
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- sarr.cn 版权所有 赣ICP备2024042794号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务