【正文】
ol with the Validation controls. You can use this control to summarize all the errors at the top of a page, or wherever else you want. 4. Advanced Control Programming Working with View State By default, almost all controls retain the values of their properties between form posts. For example, if you assign text to a Label control and submit the form, when the page is rendered again, the contents of the Label control are preserved. The magic of view state is that it does not depend on any special server or browser properties. In particular, it does not depend on cookies, session variables, or application variables. View state is implemented with a hidden form field called VIEWSTATE that is automatically created in every Web Forms Page. When used wisely, view state can have a dramatic and positive effect on the performance of your Web site. For example, if you display database data in a control that has view state enabled, you do not have to return to the database each time the page is posted back to the server. You can automatically preserve the data within the page39。 最后 , 假想你想要把一個 tax form 變成很多頁面 , 以便一個人每次只看那個 tax form 的一部分。另外一個值可能是固定值,例如:一個特定的數(shù)字或者是輸入到另一個控件中的一個值。不是所有的瀏覽器支持 JavaScript、不同版本的瀏覽器的不同版本支持 JavaScript,所以客戶端驗證沒有保障。 2. 用 Web 服務(wù)器控件創(chuàng)建窗體 構(gòu)建靈活窗體 你用幾個基本 Web 控件來代替標準的 HTML 窗體元素 , 例如 radio buttons、text boxes, and list boxes. 你能夠用這些控件為你的 Web 應(yīng)用程序在你的 頁面中創(chuàng)建用戶界面。 正如在這章討論的這個工具也可以用于操作 控件。以后不管任何時候你請求那個同樣的 頁面,那個通信類文件就會執(zhí)行。 命名空間 包含頁面緩沖內(nèi)容和自定義緩沖操作的類。 舉例來說,涉及到與文件系統(tǒng)協(xié)同工作的類就集合在 命名空間中。 以大多數(shù)的語言,你有設(shè)定字符串類型和整型數(shù)據(jù)類型的方法。 進度安排: 第 1— 4周:查看有關(guān)資料,完成對項目的整體把握,搭建工程環(huán)境。如何進行有效作業(yè)管理是擺在我們面前的一個新的課題。 III 技術(shù) 摘 要 頁面 和 結(jié)構(gòu) 是微軟 .NET framework 整體 的一部分 , 它包含一組大量的編程用的類 , 滿足各種編程需要。除此之外,它包含更多特殊的類用在正則表達式和處理 Web 協(xié)議。通過 .NET Framework 的參考文檔可以瀏覽類庫 。 它是 頁面的默認語言。 Visual Basic 是一個 VBScript 的超集 ,意味著 Visual Basic 相對于 VBScript 有更多的功能。 了解 控件 是怎么工作的?最好的方法是看一個簡單的 Web 應(yīng)用窗體頁面。 首先,你瀏覽一下針對所有 Web 控件格式屬性他們是基本控件類的格式屬性。 如果一個瀏覽器不支持 JavaScript,那個驗證規(guī)則會自動在服務(wù)器端代碼中執(zhí)行。 瀏覽狀態(tài)的妙處是它不依賴任何的特定服務(wù)器或瀏覽器的屬性。 使瀏覽狀態(tài)失效 在特定的環(huán)境中,你可能想要對一個單獨的控件或 頁面作為一個整體的瀏覽狀態(tài)失效。s Visible property has the value False, the control is not displayed on the page。 使用 Visible and Enabled 屬性 每個控件 ,包括 HTML 和 Web 控件 ,有一個 Visible 屬性 來決定那個控件是否可見。 幸好 , 微軟除了包含上面提到的控件還包括 ValidationSummary 控件。就這樣的做法更有安全的保障。首先,你學會怎么把一個 HTML 窗體鏈接到另一個頁面來獲取信息。這些控件能夠使你的網(wǎng)站的使用者看見和交互。 這些迷惑的方面體現(xiàn)在整個過程都在后臺運行,你必須要做的是用資源代碼為你的 頁面創(chuàng)建一個文本文件。 V 命名空間 包含構(gòu)建 頁面的用戶接口的類。 這個命名空間包含基本的數(shù)據(jù)類型的所有的類 ,例如:字符串、數(shù)組,還包含提供隨機數(shù)字和日期的類。 為什么繼續(xù)再創(chuàng)輪子 ? 對所有的語言創(chuàng)建這種功能一次 ,然后把這個功能用在每一種語言中豈不是更容易。 第 1314周:編寫畢業(yè)論文。 西安工業(yè)大學北方信息工程學院 本科畢業(yè)設(shè)計 (論文 ) 題目 : 基于 WEB 的學生作業(yè)管理系統(tǒng)設(shè)計與實現(xiàn) 系 別 : 計算機信息與技術(shù)系 專 業(yè): 計算機科學與技術(shù) 班 級: 學 生: 學 號: 指導教師: 2020 年 06 月 畢業(yè)設(shè)計(論文)任務(wù)書 系 別 計算機信息與技術(shù)系 專業(yè) 計算 機科學與技術(shù) 班 級 B070601 姓名 學號 B07060115 (論文 )題目: 基于 WEB的學生作業(yè)管理系統(tǒng)設(shè)計與實現(xiàn) : 隨著 Inter 技術(shù)的發(fā)展,人們的日常生活 、學習已經(jīng)離不開網(wǎng)絡(luò)。 第 15周:畢業(yè)論文答辯。 .NET 類庫不完全是那樣。 你通過完整的類的命名空間能唯一識別任何的類在 .NET framework 中的位置 。 命名空間 包含 HTML 控件的類。 .NET framework 為你處理完轉(zhuǎn)換它為編譯碼這一困難工作。舉例來說,你能使用控件建立 HTML 窗體元素,交互式日歷 , 而且可以滾動標題廣告。下一步,你學會用 Redirect()方法自動讓一個用戶瀏覽一個新的頁面 。 幸運地,正如在章節(jié)討論的這些驗證控件不會強迫你做困難的選擇。 你能用這控件綜合所有的錯誤信息在一個頁面的上端或者你想要的任何一個地方。當一個控件的 Visible 是 false 值,那個控件就不會在頁面上顯示;那個控件也不會進一步運行。 the control is not processed for either prerendering or rendering. Web controls (but not every HTML control) have an additional property named Enabled. When Enabled has the value False and you are using Inter Explorer version or higher, the control appears ghosted and no longer functions. When used with other browsers, such as Netscape Navigator, the control might not appear ghosted, but it does not function. Disabling View State In certain circumstances, you might want to disable view state for an individual control or for an page as a whole. For example, you might have a control that contains a lot of data (imagine a RadioButtonList control with 1,000 options). You might not want to load the data into the hidden __VIEWSTATE form field if you are worried that the form data would significantly slow down the rendering of the page. Using Rich Controls In the following sections, you learn how to use three of the more featurerich controls in the framework. You learn how to use the Calendar control to display interactive calendars, the AdRotator control to display rotating banner advertisements, and the HTMLInputFile control to accept file uploads. XIX 目 錄 1 緒論 ..................................................................................................................... 21 開發(fā)背景 ............................................................................................................ 21 系統(tǒng)開發(fā)的意義 ................................................................................................ 21 開發(fā)者的主要工作 ............................................................................................ 21 論文的組織結(jié)構(gòu) ................................................................................................ 22 2 相關(guān)技術(shù)介紹 .................................................................................................. 23 BREW SDK 介紹 ............................................................................................... 23 BREW 模擬器介紹 ........................................................................................... 24 OOC 介紹 .......................................................................................................... 25 ClassInC .............................................................................