1 / 19

網際網路程式設計 認識 ASP .NET 與 Visual Studio 2010 整合開發環境

網際網路程式設計 認識 ASP .NET 與 Visual Studio 2010 整合開發環境. 鄧姚文 http://www.ywdeng.idv.tw. 參考書. 李育丞( 2012 ), ASP.NET 網頁資料庫程式設計, 博碩文化股份有限公司, ISBN 978-986-201-628-2 (書號 PG31204 ). 大綱. Visual Studio 2010 介紹 認識 Visual Web Developer 2010 IDE 學習新增網站、開啟網站、關閉網站 認識 ASP .NET 的特色

verda
Download Presentation

網際網路程式設計 認識 ASP .NET 與 Visual Studio 2010 整合開發環境

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 網際網路程式設計認識 ASP .NET 與 Visual Studio 2010 整合開發環境 鄧姚文 http://www.ywdeng.idv.tw

  2. 參考書 李育丞(2012), ASP.NET網頁資料庫程式設計, 博碩文化股份有限公司, ISBN 978-986-201-628-2 (書號 PG31204)

  3. 大綱 Visual Studio 2010介紹 認識 Visual Web Developer 2010 IDE 學習新增網站、開啟網站、關閉網站 認識 ASP .NET 的特色 學習開發 ASP .NET Web應用程式 學習ASP .NET Web伺服器控制項的操作 學習ASP .NET網頁的撰寫模式

  4. 1.1 Visual Studio 2010 介紹 • Visual Studio 2010,簡稱 VS 2010 • 整合開發環境 ,簡稱 IDE (Integrated Development Environment) • VS 2010 可以開發 • ASP .NET Web 應用程式 • XML Web Service • Windows Form 視窗應用程式 • 行動裝置應用程式

  5. 多樣化的語言,共同的平台 • 支援的語言 • Visual C# • Visual Basic • Visual C++ • Visual J# • Visual F# • 共通的平台 • .NET Framework

  6. 1.2 Visual Studio 2010版本分類 • Visual Studio 2010 Express • Visual Studio 2010 Professional 專業版(入門開發) • Visual Studio 2010 Premium 企業版(企業應用開發) • Microsoft Visual Studio 2010 Ultimate 企業旗艦版(企業應用與團隊開發) • Microsoft Visual Studio 2010 Test Professional 品管人員版

  7. 1.2 Visual Studio 2010 版本分類 http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express http://www.microsoft.com/visualstudio/eng/products/visual-studio-overview Visual Web Developer (VWD) 免費版下載網址: 2012 年最新版:

  8. 1.3 ASP .NET的特色 • ASP .NET 網頁又稱為 Web Form • 網頁的副檔名為 *.aspx • ASP .NET 網頁內的程式碼在伺服器端(Server-Side)執行後,轉譯成瀏覽器相容的 HTML 標籤與 JavaScript 用戶端指令碼,傳送到用戶端(Client-Side)由瀏覽器執行,並呈現最終的結果,

  9. 1.3 ASP .NET的特色 畫面排版 程式邏輯 控制項建構 • 畫面排版和程式邏輯分離 • Code Behind • Partial Class

  10. 1.3 ASP .NET的特色 • 設計外觀一致性的網頁 • MasterPage主版頁面 • Theme 佈景主題 • 功能強大的伺服器控制項 • 資料控制項: 存取資料庫 • 驗證控制項: 驗證使用者輸入 • AJAX 擴充功能控制項: 不用撰寫任何JavaScript用戶端指令碼即可製作AJAX非同步網頁

  11. MasterPage

  12. 1.3 ASP .NET的特色 • 支援開發 XML Web Services • 使用 ASP .NET 開發 XML Web Services,提供Web 服務給網路上的其它程式 • Visual Basic 建置的 XML Web Services 可以讓Visual C++ 或 Visual C# 呼叫 • 跨語言的分散式 Web 應用程式 • LINQ (Language Integrated Query) 直接和 C# 語法整合,使用統一的語法查詢陣列、集合、XML、DataSet資料集以及 SQL Server 資料庫

  13. 1.3 ASP .NET的特色 • ASP .NET 網頁除了第一次執行需要編譯外,第二次以後執行都可直接使用第一次編譯過的二進位碼(微軟稱之為組件 Assembly) • 使用 ASP .NET 4.0 網站管理工具、登入控制項及 Membership 成員資格管理網站安全性 • 網站的驗證與授權 • 管理使用者 • 角色管理 • 網站存取規則 • 應用程式管理

  14. 1.3 ASP .NET的特色 • 支援全新的CSS(Cascading Style Sheet,串接樣式表)與網頁標準支援來建立Web應用程式的使用者介面。 • 使用Visual Studio 2010或Visual Web Developer 2010 Express來撰寫用戶端指令碼JavaScript或jQuery,可以支援IntelliSense,讓開發人員撰寫用戶端指令碼JavaScript或jQuery更有效率。

  15. 1.3 ASP .NET的特色 透過ASP.NET 4.0新增的Chart圖表控制項只要配合資料來源控制項,讓您不用撰寫任何程式碼即能在網頁上繪製各種類型的統計圖表。 ASP.NET 4.0新增Silverlight與MVC2專案,透過Silverlight可以開發具備多媒體與豐富使用者經驗的RIA應用程式,透過MVC2專案可以為大型Web應用程式簡化開發流程。

  16. 範例:Say Hello 請使用 ASP.NET 空白 Web 應用程式

  17. 1.6.7 控制項的命名

  18. 1.7 ASP .NET 網頁的撰寫模式 • ASP .NET可使用單一檔案(single-file)與程式碼後置(code-behind)兩種網頁的撰寫模式。現以下圖顯示目前日期時間的ASP .NET網頁為例,練習撰寫單一檔案與程式碼後置兩種ASP .NET網頁的撰寫模式。

More Related