【正文】
t = 體育世界。 case 3: lbtxt = 社會(huì)現(xiàn)象。 case 4: lbtxt = 科學(xué)教育。 case 5: lbtxt = 經(jīng)濟(jì)動(dòng)向。case 6: lbtxt = 時(shí)政要聞。 } } protected void Button1_Click(object sender, EventArgs e) { sql = insert into allgonggao(title,content,leibie) values(39。,39。,39。)。 result = new Class1().hsgexucute(sql)。添加成功39。/script)。系統(tǒng)錯(cuò)誤39。/script)。[12]二、新聞管理新聞管理模塊是對(duì)新聞信息進(jìn)行管理的功能模塊[13],新聞信息管理包括查看新聞信息,修改新聞信息,刪除新聞信息,管理員可以批量刪除新聞信息。圖57 管理員信息管理頁(yè)面實(shí)現(xiàn)本模塊的主要代碼如下所示:protected void Page_Load(object sender, EventArgs e) { if (Session[role].ToString().Trim() != 超級(jí)管理員) //判斷session值,如果是超級(jí)管理員,則此頁(yè)可用,如果不是,則給出對(duì)話框提示. { (scriptjavascript:alert(39。)。/script)。 } } protected void Button1_Click(object sender, EventArgs e) { string sql。 + ().Trim() + 39。 + ().Trim() + 39。 new Class1().hsgexucute(sql)。添加成功39。/script)。其他各項(xiàng)功能操作界面都清晰明了,故不一一說明。: 用戶信息管理模塊實(shí)現(xiàn)本模塊的主要代碼如下所示:protected void Button1_Click(object sender, EventArgs e) { string sql。 if (().Trim() != ) { sql = sql + and yonghuming like 39。 } if (().Trim() != ) { sql = sql + and xingming like 39。 } sql = sql + order by id desc。 } 第五章 系統(tǒng)測(cè)試第一節(jié) 系統(tǒng)測(cè)試的目的和原則在任何軟件系統(tǒng)的開發(fā)過程中,尤其是在進(jìn)行大型軟件系統(tǒng)的開發(fā)中,任何一個(gè)編程人員都不可避免地會(huì)產(chǎn)生錯(cuò)誤。第二節(jié) 系統(tǒng)測(cè)試一、會(huì)員登錄測(cè)試要點(diǎn)測(cè)試要點(diǎn):用戶名和密碼。測(cè)試結(jié)果:為真,進(jìn)入系統(tǒng);為假,提示重新輸入用戶信息。測(cè)試路徑:從管理系統(tǒng)的主頁(yè)面直接進(jìn)入是否能成功測(cè)試結(jié)果:無法成功進(jìn)入,提示必須先進(jìn)行管理員登錄,并自動(dòng)跳轉(zhuǎn)至登錄頁(yè)面。測(cè)試路徑:輸入類型是否正確,是否允許為空。輸入空值,允許為空,則正常增加記錄,否則提示不允許為空。四、 新聞刪除測(cè)試要點(diǎn)測(cè)試要點(diǎn):數(shù)據(jù)點(diǎn)擊即可直接無條件刪除。測(cè)試結(jié)果:存在子記錄,提示無法成功直接刪除,并返回至上一個(gè)頁(yè)面;當(dāng)不存在子記錄時(shí),可以直接刪除成功。當(dāng)用戶名和用戶密碼錯(cuò)誤的時(shí)候,提示框顯示,不能以用戶身份進(jìn)入系統(tǒng)。如果不輸入登錄賬號(hào)和登錄密碼系統(tǒng)會(huì)提示出所必須輸入的項(xiàng)目。其測(cè)試效果。通過構(gòu)建一個(gè)新聞發(fā)布系統(tǒng),+SQL Sever 2005開發(fā)web應(yīng)用程序的各種技術(shù)和方法進(jìn)行了研究和測(cè)試。而且隨著社會(huì)的發(fā)展,它是需要不短的更新和升級(jí)的,在以后的日子里,要根據(jù)社會(huì)的發(fā)展和市場(chǎng)的需求進(jìn)行不斷的更新和升級(jí),使系統(tǒng)更加完善,為人們的出行做出更大的貢獻(xiàn)。設(shè)計(jì)本系統(tǒng)的過程不僅是對(duì)我學(xué)過的知識(shí)的一次應(yīng)用,更是對(duì)我綜合處理問題、解決實(shí)際問題能力的培養(yǎng)和鍛煉。我在設(shè)計(jì)過程中也遇到了很多困難,但是通過指導(dǎo)老師和同學(xué)的幫助以及自己的努力,最終還是順利地完成了畢業(yè)設(shè)計(jì)。雖然,畢業(yè)設(shè)計(jì)只有短暫的幾個(gè)月,但卻使我充分認(rèn)識(shí)到自身還存在很多不足的地方,還需要不斷的努力來充實(shí)自己、完善自己,只有這樣才能學(xué)無止境,以求得更大的發(fā)展。黃穎老師在教學(xué)任務(wù)繁忙的情況下,抽出時(shí)間幫助糾正我在設(shè)計(jì)當(dāng)中出現(xiàn)的問題,并耐心地為我的論文作校正。其次感謝我在校期間的所有帶課的老師,是他們傳授給我寶貴的知識(shí),也是他們使我學(xué)會(huì)了奮斗與拼搏,同樣也是他們使我懂得了堅(jiān)強(qiáng)與自信。 參 考 文 獻(xiàn) [1] 汪曉平、[M].北京:人民郵政出版社,200312.[2] + SQL 2005組建動(dòng)態(tài)網(wǎng)站[M].北京:人民郵電出版社,20048.[3] [M].北京:機(jī)械工業(yè)出版社,2002.[4] [M].北京:人民郵電出版社,2002.[5] 郭瑞軍、李杰、[M].電子工業(yè)出版社,20052.[6] 閆洪亮、《》[M].上海交通大學(xué)出版社,2006.[7] Stanley B. Lippman. C Primer [M]. AddisonWesley Professional,2002.[8] Andrew Whitechapel/Tom 技術(shù)揭秘[M]. 機(jī)械工業(yè)出版社,2003.[9] Bill Wagner. Effective C[M]. AddisonWesley Professional,2010.[10] 鄧文淵、挑戰(zhàn).《互動(dòng)網(wǎng)站百寶箱》[M].北京:中國(guó)鐵道出版社,2004.[11] 李存斌、樊建平.《》[M].中國(guó)水利水電出版社,2008.[12] More Effective C: 50 Specific Ways to Improve Your C[M].Bill Wagner.北京:人民郵電出版社.2003.[13] Jim Arlow,IIa Neustadt.UML 2 and the Unified Process: Practical ObjectOriented Analysis and Design [M],Second Edition.北京:人民郵電出版社.2006.[14] [M].Dino Esposito著,施平安 譯.北京:清華大學(xué)出版社.2006.[15] 劉延、劉帆編著.《》.中國(guó)電力出版,2006年.[16] 葉乃文,.附 錄一、英文原文Press Release System feasibility With the rapid development of information science, and relying on networks developed a variety of networking products, has entered people39。s concept. With the popularization of the Internet, we can not only browse information on the Internet, and can participate in, many people have their own Web pages and Web sites on the Internet to display and promote their own. Hence the need for information distribution system to publish information, including a lot of news, it is an indispensable tool for future work life. Press Release System (information distribution system), some of the need for frequent changes on the page, similar news, new product releases and industry dynamic updates centralized management, and some mon information classification, and finally systematic standardized published to a web applications on the site. Website information in a single operation, simple interface added to the database, and then posted to the website through the existing page template format and review process. It is designed for enterprise release timesensitive multiple types of news and information and the development of this system to publish news and information, such as business news, industry news, and can support up to two classifications. The system also has a ment Clicks statistics, information, keyword search function.Press Release System (News Release System or Content Management System), also known as content management system is a management system based on news and content management station, the news release system is based on B / S mode system, the system can be chaotic information (including text, pictures and audiovisual) organization, reasonable and orderly presentation in front of everyone. Today39。s minds to further improve the news release system as the core of the network media system, and its importance is increasingly important: on the one hand, it provides a news management and publishing。 Microsoft SQL Server 2005 is a the . Microsoft introduced the use of a wide range of database management system, contains a set of graphical tools, such asserver management (used to start and shut down the database service), Enterprise Manager (for creating and modifying database and backup database etc.) and Query Analyzer (for interactive execution of Transact SQL statements and process and provides graphical query analysis capabilities). SQL Server 2005 for rapid scalability emerce, enterprise and data warehouse solutions and the development of a plete database and analysis software products. SQL SERVER 2000 database application located in the Internet context, it is the user39。通過全球成千上萬的網(wǎng)站查找某一學(xué)科的專項(xiàng)技術(shù),或了解最新的科學(xué)發(fā)展前沿動(dòng)向,網(wǎng)絡(luò)成了一種最方便、快捷的方法。以人為本、科技為人服務(wù)的理念得到最廣泛的認(rèn)同,并真正改變著人們的理念