計算機(jī)專業(yè)外文翻譯-ASP.NET 概述_第1頁
計算機(jī)專業(yè)外文翻譯-ASP.NET 概述_第2頁
計算機(jī)專業(yè)外文翻譯-ASP.NET 概述_第3頁
計算機(jī)專業(yè)外文翻譯-ASP.NET 概述_第4頁
計算機(jī)專業(yè)外文翻譯-ASP.NET 概述_第5頁
已閱讀5頁,還剩12頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、蓿妥憚礅樂蓁懿至段蒂祜剌蒲績附件1:外文資料翻譯譯文婆菱堝勺獐僵倆撣企觶扎鐋嗄垂癱課廠濠緯瞥刳癮淶苡躺襟諶晃ASP.NET 概述驀鎊犄涎邀橫嗥橋笈托緣冼六繚ASP.NET 是一個統(tǒng)一的 Web 開發(fā)模型,它包括您使用盡可能少的代碼生成企業(yè)級 Web 應(yīng)用程序所必需的各種服務(wù)。ASP.NET 作為 .NET Framework 的一部分提供。當(dāng)您編寫 ASP.NET 應(yīng)用程序的代碼時,可以訪問 .NET Framework 中的類。您可以使用與公共語言運(yùn)行庫 (CLR) 兼容的任何語言來編寫應(yīng)用程序的代碼,這些語言包括 Microsoft Visual Basic、C#、JScript .NET

2、 和 J#。使用這些語言,可以開發(fā)利用公共語言運(yùn)行庫、類型安全、繼承等方面的優(yōu)點(diǎn)的 ASP.NET 應(yīng)用程序。慘丞砼斷徽飧枚泐艷漿水箴搴逄ASP.NET 包括:約愾閥嫂桔埃旃酷巖聯(lián)黨鲅鷦葶 頁和控件框架騸坊好雀銎容泗傍煲霸拐覡昀洹 ASP.NET 編譯器襪繕袢伽箬核怪裒藻鰷?zhǔn)莺牒猿?安全基礎(chǔ)結(jié)構(gòu)勒祿菽閏怯鋪恩敕臺戤串?dāng)渴矆D 狀態(tài)管理功能將陌小眶砌牖蟾萇了蝰愫洱召嗶 應(yīng)用程序配置鎪攙導(dǎo)圳鈺貓瘸攣諾委筻珊犬岌 運(yùn)行狀況監(jiān)視和性能功能苤磐督嗖紼唱公漱牌干杖榪賒禽 調(diào)試支持虬柰稼襠蟬耘即匹球鑫筱蜚木酩 XML Web services 框架葬篤距褪善坫彩掏居祝散獎晗惶 可擴(kuò)展的宿主環(huán)境和應(yīng)用程序生命周

3、期管理豈焙蝣蠱膩郡詘謂徒矮碓收毆躓 可擴(kuò)展的設(shè)計器環(huán)境踝綾賞雩祧嬌廊艙筻奈酷釓為枕ASP.NET 頁和控件框架是一種編程框架,它在 Web 服務(wù)器上運(yùn)行,可以動態(tài)地生成和呈現(xiàn) ASP.NET 網(wǎng)頁??梢詮娜魏螢g覽器或客戶端設(shè)備請求 ASP.NET 網(wǎng)頁,ASP.NET 會向請求瀏覽器呈現(xiàn)標(biāo)記(例如 HTML)。通常,您可以對多個瀏覽器使用相同的頁,因?yàn)?ASP.NET 會為發(fā)出請求的瀏覽器呈現(xiàn)適當(dāng)?shù)臉?biāo)記。但是,您可以針對諸如 Microsoft Internet Explorer 6 的特定瀏覽器設(shè)計 ASP.NET 網(wǎng)頁,并利用該瀏覽器的功能。ASP.NET 支持基于 Web 的設(shè)備(如移動

4、電話、手持型計算機(jī)和個人數(shù)字助理 (PDA))的移動控件。 縹旁腳祀迪鑷束默依擎兄睡邙練ASP.NET 網(wǎng)頁是完全面向?qū)ο蟮?。?ASP.NET 網(wǎng)頁中,可以使用屬性、方法和事件來處理 HTML 元素。ASP.NET 頁框架為響應(yīng)在服務(wù)器上運(yùn)行的代碼中的客戶端事件提供統(tǒng)一的模型,從而使您不必考慮基于 Web 的應(yīng)用程序中固有的客戶端和服務(wù)器隔離的實(shí)現(xiàn)細(xì)節(jié)。該框架還會在頁處理生命周期中自動維護(hù)頁及該頁上控件的狀態(tài)。胄綞淇橢縈罐篝弼米彎噪霄說悼使用 ASP.NET 頁和控件框架還可以將常用的 UI 功能封裝成易于使用且可重用的控件??丶恍杈帉懸淮?,即可用于許多頁并集成到 ASP.NET 網(wǎng)頁中。

5、這些控件在呈現(xiàn)期間放入 ASP.NET 網(wǎng)頁中。婿胄勝匹推捫宰齏萋翹珠晌鰓霸ASP.NET 頁和控件框架還提供各種功能,以便可以通過主題和外觀來控制網(wǎng)站的整體外觀和感覺??梢韵榷x主題和外觀,然后在頁面級或控件級應(yīng)用這些主題和外觀??s蝗鰓揶忻啄夕吻堆佑痱廳佯遣除了主題外,還可以定義母版頁,以使應(yīng)用程序中的頁具有一致的布局。一個母版頁可以定義您希望應(yīng)用程序中的所有頁(或一組頁)所具有的布局和標(biāo)準(zhǔn)行為。然后可以創(chuàng)建包含要顯示的頁特定內(nèi)容的各個內(nèi)容頁。當(dāng)用戶請求內(nèi)容頁時,這些內(nèi)容頁與母版頁合并,產(chǎn)生將母版頁的布局與內(nèi)容頁中的內(nèi)容組合在一起的輸出。票錒餉齜碉暹賂蝎構(gòu)勺蜀序問端所有 ASP.NET 代碼

6、都經(jīng)過了編譯,可提供強(qiáng)類型、性能優(yōu)化和早期綁定以及其他優(yōu)點(diǎn)。代碼一經(jīng)編譯,公共語言運(yùn)行庫會進(jìn)一步將 ASP.NET 編譯為本機(jī)代碼,從而提供增強(qiáng)的性能。柑豹坎胼垃慷銼芯噤氽放榱泥搞ASP.NET 包括一個編譯器,該編譯器將包括頁和控件在內(nèi)的所有應(yīng)用程序組件編譯成一個程序集,之后 ASP.NET 宿主環(huán)境可以使用該程序集來處理用戶請求。挨譙煥凳嬙刖句姚鋟嘰阼靈達(dá)令除了 .NET 的安全功能外,ASP.NET 還提供了高級的安全基礎(chǔ)結(jié)構(gòu),以便對用戶進(jìn)行身份驗(yàn)證和授權(quán),并執(zhí)行其他與安全相關(guān)的功能。您可以使用由 IIS 提供的 Windows 身份驗(yàn)證對用戶進(jìn)行身份驗(yàn)證,也可以通過您自己的用戶數(shù)據(jù)庫使

7、用 ASP.NET Forms 身份驗(yàn)證和 ASP.NET 成員資格來管理身份驗(yàn)證。此外,可以使用 Windows 組或您自己的自定義角色數(shù)據(jù)庫(使用 ASP.NET 角色)來管理 Web 應(yīng)用程序的功能和信息方面的授權(quán)。您可以根據(jù)應(yīng)用程序的需要方便地移除、添加或替換這些方案。咐企信垡碎堀賭昭鼯鯫嘸腋宣諉ASP.NET 始終使用特定的 Windows 標(biāo)識運(yùn)行,因此,您可以通過使用 Windows 功能(例如 NTFS 訪問控制列表 (ACL)、數(shù)據(jù)庫權(quán)限等等)來保護(hù)應(yīng)用程序的安全。毆裴玎悒崛躔犬煸杉髹杳列去米ASP.NET 提供了內(nèi)部狀態(tài)管理功能,它使您能夠存儲頁請求期間的信息,例如客戶信息

8、或購物車的內(nèi)容。您可以保存和管理應(yīng)用程序特定、會話特定、頁特定、用戶特定和開發(fā)人員定義的信息。此信息可以獨(dú)立于頁上的任何控件。蒜顛偏齜招淞誆熱昂縟炬桌偈趟ASP.NET 提供了分布式狀態(tài)功能,使您能夠管理一臺計算機(jī)或數(shù)臺計算機(jī)上同一應(yīng)用程序的多個實(shí)例的狀態(tài)信息。歇圜燜絡(luò)惚賦蚰騁秒閱慌笸污史通過 ASP.NET 應(yīng)用程序使用的配置系統(tǒng),可以定義 Web 服務(wù)器、網(wǎng)站或單個應(yīng)用程序的配置設(shè)置。您可以在部署 ASP.NET 應(yīng)用程序時定義配置設(shè)置,并且可以隨時添加或修訂配置設(shè)置,且對運(yùn)行的 Web 應(yīng)用程序和服務(wù)器具有最小的影響。ASP.NET 配置設(shè)置存儲在基于 XML 的文件中。由于這些 XML

9、 文件是 ASCII 文本文件,因此對 Web 應(yīng)用程序進(jìn)行配置更改比較簡單。您可以擴(kuò)展配置方案,使其符合自己的要求。嚏鉀駑圻璦舀狎顫浩卡锪鱖萆膨ASP.NET 包括可監(jiān)視 ASP.NET 應(yīng)用程序的運(yùn)行狀況和性能的功能。使用 ASP.NET 運(yùn)行狀況監(jiān)視可以報告關(guān)鍵事件,這些關(guān)鍵事件提供有關(guān)應(yīng)用程序的運(yùn)行狀況和錯誤情況的信息。這些事件顯示診斷和監(jiān)視特征的組合,并在記錄哪些事件以及如何記錄事件等方面提供了高度的靈活性。婀制譴靂湯莨俗素勁卿壘駿僵頂ASP.NET 支持兩組可供應(yīng)用程序訪問的性能計數(shù)器:孚微蛻厄洽鱖頌較賦蛑廣朊趁汨 ASP.NET 系統(tǒng)性能計數(shù)器組把物唑鈧霆?dú)淠轻`硝諉磚開 AS

10、P.NET 應(yīng)用程序性能計數(shù)器組傳蟠鄯酥蘢趟刺潘輾雀案膺榧ASP.NET 利用運(yùn)行庫調(diào)試基礎(chǔ)結(jié)構(gòu)來提供跨語言和跨計算機(jī)調(diào)試支持。可以調(diào)試托管和非托管對象,以及公共語言運(yùn)行庫和腳本語言支持的所有語言。鉗倦姿槐嶇匆窶髹臣苫諗慮衄碰此外,ASP.NET 頁框架提供使您可以將檢測消息插入 ASP.NET 網(wǎng)頁的跟蹤模式。多藥韋粞鹋禪摑蘋髟枘匿銻俱鈕ASP.NET 支持 XML Web services。XML Web services 是包含業(yè)務(wù)功能的組件,利用該業(yè)務(wù)功能,應(yīng)用程序可以使用 HTTP 和 XML 消息等標(biāo)準(zhǔn)跨越防火墻交換信息。XML Web services 不用依靠特定的組件技術(shù)或?qū)?/p>

11、象調(diào)用約定。因此,用任何語言編寫、使用任何組件模型并在任何操作系統(tǒng)上運(yùn)行的程序,都可以訪問 XML Web services。慵規(guī)病遺揄訝嘟褫寢撣灸芏瞰黍ASP.NET 包括一個可擴(kuò)展的宿主環(huán)境,該環(huán)境控制應(yīng)用程序的生命周期,即從用戶首次訪問此應(yīng)用程序中的資源(例如頁)到應(yīng)用程序關(guān)閉這一期間。雖然 ASP.NET 依賴作為應(yīng)用程序宿主的 Web 服務(wù)器 (IIS),但 ASP.NET 自身也提供了許多宿主功能。通過 ASP.NET 的基礎(chǔ)結(jié)構(gòu),您可以響應(yīng)應(yīng)用程序事件并創(chuàng)建自定義 HTTP 處理程序和 HTTP 模塊。锃螈哏嗚湮醭芾銜奉嗑堡讀濺辜ASP.NET 中提供了對創(chuàng)建 Web 服務(wù)器控件

12、設(shè)計器(用于可視化設(shè)計工具,例如 Visual Studio)的增強(qiáng)支持。使用設(shè)計器可以為控件生成設(shè)計時用戶界面,這樣開發(fā)人員可以在可視化設(shè)計工具中配置控件的屬性和內(nèi)容。肝寰崠土潯尢若瀣匱偏憾礤鈴炒C# 是一種簡潔、類型安全的面向?qū)ο蟮恼Z言,開發(fā)人員可以使用它來構(gòu)建在 .NET Framework 上運(yùn)行的各種安全、可靠的應(yīng)用程序。使用 C#,您可以創(chuàng)建傳統(tǒng)的 Windows 客戶端應(yīng)用程序、XML Web services、分布式組件、客戶端 - 服務(wù)器應(yīng)用程序、數(shù)據(jù)庫應(yīng)用程序以及很多其他類型的程序。Microsoft Visual C# 2005 提供高級代碼編輯器、方便的用戶界面設(shè)計器、

13、集成調(diào)試器和許多其他工具,以在 C# 語言版本 2.0 和 .NET Framework 的基礎(chǔ)上加快應(yīng)用程序的開發(fā)。褻僦遂莨汩鏈說迷漬殞樁璞山廒C# 語法表現(xiàn)力強(qiáng),只有不到 90 個關(guān)鍵字,而且簡單易學(xué)。C# 的大括號語法使任何熟悉 C、C+ 或 Java 的人都可以立即上手。了解上述任何一種語言的開發(fā)人員通常在很短的時間內(nèi)就可以開始使用 C# 高效地工作。C# 語法簡化了 C+ 的諸多復(fù)雜性,同時提供了很多強(qiáng)大的功能,例如可為空的值類型、枚舉、委托、匿名方法和直接內(nèi)存訪問,這些都是 Java 所不具備的。C# 還支持泛型方法和類型,從而提供了更出色的類型安全和性能。C# 還提供了迭代器,允

14、許集合類的實(shí)現(xiàn)者定義自定義的迭代行為,簡化了客戶端代碼對它的使用。酲御鄶藕黍埤乖青托笛戤顏?zhàn)V膏作為一種面向?qū)ο蟮恼Z言,C# 支持封裝、繼承和多態(tài)性概念。所有的變量和方法,包括 Main 方法(應(yīng)用程序的入口點(diǎn)),都封裝在類定義中。類可能直接從一個父類繼承,但它可以實(shí)現(xiàn)任意數(shù)量的接口。重寫父類中的虛方法的各種方法要求 override 關(guān)鍵字作為一種避免意外重定義的方式。在 C# 中,結(jié)構(gòu)類似于一個輕量類;它是一種堆棧分配的類型,可以實(shí)現(xiàn)接口,但不支持繼承。肱晃騷瑟半犭吖液募赦辮紼嬈嗒除了這些基本的面向?qū)ο蟮脑?,C# 還通過幾種創(chuàng)新的語言結(jié)構(gòu)加快了軟件組件的開發(fā),其中包括:短妖詈盧蛟贗斐杜杜認(rèn)

15、污鱟札傀 封裝的方法簽名(稱為委托),它實(shí)現(xiàn)了類型安全的事件通知。截脊斐澆旖勸乎貺槎蓀弄錠曠晾 屬性 (Property),充當(dāng)私有成員變量的訪問器。 恫芹鰨坤湍門圣膿芒蚜鍆渦艉疊 屬性 (Attribute),提供關(guān)于運(yùn)行時類型的聲明性元數(shù)據(jù)。 讀炸摞綴千有碓擻嬤泥缺箋蕾蚍 內(nèi)聯(lián) XML 文檔注釋。餿儈鎘尕微刻偏邈璧鄱涂逅鲺抓在 C# 中,如果需要與其他 Windows 軟件(如 COM 對象或本機(jī) Win32 DLL)交互,可以通過一個稱為“Interop”的過程來實(shí)現(xiàn)?;ゲ僮魇?C# 程序能夠完成本機(jī) C+ 應(yīng)用程序可以完成的幾乎任何任務(wù)。在直接內(nèi)存訪問必不可少的情況下,C# 甚至支持指

16、針和“不安全”代碼的概念。醫(yī)捍胲捷蕪汐柯媚踞晃杓驚統(tǒng)芍C# 的生成過程比 C 和 C+ 簡單,比 Java 更為靈活。沒有單獨(dú)的頭文件,也不要求按照特定順序聲明方法和類型。C# 源文件可以定義任意數(shù)量的類、結(jié)構(gòu)、接口和事件。港履難扉歪堊滹梯次綁札知喑戽C# 程序在 .NET Framework 上運(yùn)行,它是 Windows 的一個必要組件,包括一個稱為公共語言運(yùn)行時 (CLR) 的虛擬執(zhí)行系統(tǒng)和一組統(tǒng)一的類庫。CLR 是 Microsoft 的公共語言基礎(chǔ)結(jié)構(gòu) (CLI) 的一個商業(yè)實(shí)現(xiàn)。CLI 是一種國際標(biāo)準(zhǔn),是用于創(chuàng)建語言和庫在其中無縫協(xié)同工作的執(zhí)行和開發(fā)環(huán)境的基礎(chǔ)。圍籟洎蘩噬擰砂汝鯛跚欺

17、釉葵歉用 C# 編寫的源代碼被編譯為一種符合 CLI 規(guī)范的中間語言 (IL)。IL 代碼與資源(如位圖和字符串)一起作為一種稱為程序集的可執(zhí)行文件存儲在磁盤上,通常具有的擴(kuò)展名為 .exe 或 .dll。程序集包含清單,它提供關(guān)于程序集的類型、版本、區(qū)域性和安全要求等信息??瑤琶脢Z雌悟所歷柬魯截暾蟒鄞執(zhí)行 C# 程序時,程序集將加載到 CLR 中,這可能會根據(jù)清單中的信息執(zhí)行不同的操作。然后,如果符合安全要求,CLR 執(zhí)行實(shí)時 (JIT) 編譯以將 IL 代碼轉(zhuǎn)換為本機(jī)機(jī)器指令。CLR 還提供與自動垃圾回收、異常處理和資源管理有關(guān)的其他服務(wù)。由 CLR 執(zhí)行的代碼有時稱為“托管代碼”,它與編

18、譯為面向特定系統(tǒng)的本機(jī)機(jī)器語言的“非托管代碼”相對應(yīng)。下圖演示了 C# 源代碼文件、基類庫、程序集和 CLR 的編譯時與運(yùn)行時的關(guān)系。磁險殛菪微喂廿婦凱醴肢舅糇亡技登雀顯樨猱獻(xiàn)簟鲴衷輾崦彰語言互操作性是 .NET Framework 的一個關(guān)鍵功能。因?yàn)橛?C# 編譯器生成的 IL 代碼符合公共類型規(guī)范 (CTS),因此從 C# 生成的 IL 代碼可以與從 Visual Basic、Visual C+、Visual J# 的 .NET 版本或者其他 20 多種符合 CTS 的語言中的任何一種生成的代碼進(jìn)行交互。單一程序集可能包含用不同 .NET 語言編寫的多個模塊,并且類型可以相互引用,就像它

19、們是用同一種語言編寫的。血瞳洗盲凹詈份邗工撈淹昴蜿凵除了運(yùn)行時服務(wù),.NET Framework 還包含一個由 4000 多個類組成的內(nèi)容詳盡的庫,這些類被組織為命名空間,為從文件輸入和輸出到字符串操作、到 XML 分析、到 Windows 窗體控件的所有內(nèi)容提供多種有用的功能。典型的 C# 應(yīng)用程序使用 .NET Framework 類庫廣泛地處理常見的“日?!比蝿?wù)。媽憚示怨催錫揉鉗糇奩橙敞卜籃緱酬唯俄塹霈偎嫁恙蕨緄翟匹凰附件2:外文原文臉擷邡元有箋鯡抻沁殲脬窘要閃螂即胲蒯雙差健微莪項沫呶竅乜ASP.NET Overview肭顱獲匝窖掃熳琬煬蟠鄯徉褶菡ASP.NET is a unified

20、 Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of the .NET Framework, and when coding ASP.NET applications you have access to classes in the .NET Framework. You can code your applications in any

21、 language compatible with the common language runtime (CLR), including Microsoft Visual Basic, C#, JScript.NET, and J#. These languages enable you to develop ASP.NET applications that benefit from the common language runtime, type safety, inheritance, and so on.洶槌眩協(xié)工騸易統(tǒng)斡堇駱鮞掭喇ASP.NET includes:裥噢矣燒壓領(lǐng)揄

22、悌郅鈕徵蛤璐執(zhí) A page and controls framework沌胖嶸唪雷瘐挫磯蟮坨巫銥剖啄 The ASP.NET compiler曦彝初瀾參叉成梯催啃柬櫧件漚 Security infrastructure訪整胚喀韌黌連愁疬埂趔畛反鉻 State-management facilities股雜搦啤藉兼酣簸畦帝迄镎拿鍺 Application configuration薌刺邐扇昱酉趴忽苛青宏騾趴崾 Health monitoring and performance features閔鍍癮旱肜葜廬礬妖綈陬罘侶掇 Debugging support蒽醚唔霓虹腩蘄忠蔡鮐持缶鄱緯 An X

23、ML Web services framework溽指慣百倥立廓鵜離絕郝皇肜途 Extensible hosting environment and application life cycle management切麈鼉匭諍只橋釙任凇碓氨痧襻 An extensible designer environment醵密睛歲秤查捅夸謎鴿崗池駐癤The ASP.NET page and controls framework is a programming framework that runs on a Web server to dynamically produce and render AS

24、P.NET Web pages. ASP.NET Web pages can be requested from any browser or client device, and ASP.NET renders markup (such as HTML) to the requesting browser. As a rule, you can use the same page for multiple browsers, because ASP.NET renders the appropriate markup for the browser making the request. H

25、owever, you can design your ASP.NET Web page to target a specific browser, such as Microsoft Internet Explorer 6, and take advantage of the features of that browser. ASP.NET supports mobile controls for Web-enabled devices such as cellular phones, handheld computers, and personal digital assistants

26、(PDAs). 爿榨叉肩描暫燼磉悌飧垂溲烯民ASP.NET Web pages are completely object-oriented. Within ASP.NET Web pages you can work with HTML elements using properties, methods, and events. The ASP.NET page framework removes the implementation details of the separation of client and server inherent in Web-based applicati

27、ons by presenting a unified model for responding to client events in code that runs at the server. The framework also automatically maintains the state of a page and the controls on that page during the page processing life cycle. 鞲骯衙型購灸豹灼癔錢霪崖和筅The ASP.NET page and controls framework also enables yo

28、u to encapsulate common UI functionality in easy-to-use, reusable controls. Controls are written once, can be used in many pages, and are integrated into the ASP.NET Web page that they are placed in during rendering.廷璀湞釹縐弦訛欄禱澉銚牛評鹱The ASP.NET page and controls framework also provides features to cont

29、rol the overall look and feel of your Web site via themes and skins. You can define themes and skins and then apply them at a page level or at a control level. 菏厄邱啟泛稂鹼啾炔竿臨臚肫要In addition to themes, you can define master pages that you use to create a consistent layout for the pages in your applicatio

30、n. A single master page defines the layout and standard behavior that you want for all the pages (or a group of pages) in your application. You can then create individual content pages that contain the page-specific content you want to display. When users request the content pages, they merge with t

31、he master page to produce output that combines the layout of the master page with the content from the content page. 搏曜貸父孩輒舅戇二往镅綸蜷鳙All ASP.NET code is compiled, which enables strong typing, performance optimizations, and early binding, among other benefits. Once the code has been compiled, the commo

32、n language runtime further compiles ASP.NET code to native code, providing improved performance.兼怠鋰腋驟順氬頇溘擦攻拭蔽煜ASP.NET includes a compiler that will compile all your application components including pages and controls into an assembly that the ASP.NET hosting environment can then use to service user

33、requests. 汀洮邏峻邯汾欏靠畀岑蝮文就評In addition to the security features of .NET, ASP.NET provides an advanced security infrastructure for authenticating and authorizing user access as well as performing other security-related tasks. You can authenticate users using Windows authentication supplied by IIS, or yo

34、u can manage authentication using your own user database using ASP.NET forms authentication and ASP.NET membership. Additionally, you can manage the authorization to the capabilities and information of your Web application using Windows groups or your own custom role database using ASP.NET roles. Yo

35、u can easily remove, add to, or replace these schemes depending upon the needs of your application. 瓣蒯蓿杯篆岡疚抿蜱飭月釹闐太ASP.NET always runs with a particular Windows identity so you can secure your application using Windows capabilities such as NTFS Access Control Lists (ACLs), database permissions, and s

36、o on. For more information on the identity of ASP.NET,姚屏嗽臻蠆膾澡傘譏塌久槲籩簸ASP.NET provides intrinsic state management functionality that enables you to store information between page requests, such as customer information or the contents of a shopping cart. You can save and manage application-specific, se

37、ssion-specific, page-specific, user-specific, and developer-defined information. This information can be independent of any controls on the page.鱟蹇鮭噼伊杰銨覆鴆虜鋮厝腧洳ASP.NET offers distributed state facilities, which enable you to manage state information across multiple instances of the same application o

38、n one computer or on several computers. 酐餉麓辜省仍國躑瑜籍氤焙忘蛻ASP.NET applications use a configuration system that enables you to define configuration settings for your Web server, for a Web site, or for individual applications. You can make configuration settings at the time your ASP.NET applications are d

39、eployed and can add or revise configuration settings at any time with minimal impact on operational Web applications and servers. ASP.NET configuration settings are stored in XML-based files. Because these XML files are ASCII text files, it is simple to make configuration changes to your Web applica

40、tions. You can extend the configuration scheme to suit your requirements. 莼阿謹(jǐn)伎盲媽逋癌隋靖嗎愚幻瀾ASP.NET includes features that enable you to monitor health and performance of your ASP.NET application. ASP.NET health monitoring enables reporting of key events that provide information about the health of an a

41、pplication and about error conditions. These events show a combination of diagnostics and monitoring characteristics and offer a high degree of flexibility in terms of what is logged and how it is logged. 圄舜芫釀旮咬啦艿暌失翹耄芋渲ASP.NET supports two groups of performance counters accessible to your applicatio

42、ns:撿嗬溲揄芊崮晌餃郗胗粹聱幔窯 The ASP.NET system performance counter group霉甾韁酆艋鋸眸款療耳瑕倜嗤眷 The ASP.NET application performance counter group茈力哂皆柏沉渙啜醛疔鬏諄璣寐ASP.NET takes advantage of the run-time debugging infrastructure to provide cross-language and cross-computer debugging support. You can debug both managed and

43、unmanaged objects, as well as all languages supported by the common language runtime and script languages. 挎別岍鋯嶧腎窶癘仵姐膩臼漾繅In addition, the ASP.NET page framework provides a trace mode that enables you to insert instrumentation messages into your ASP.NET Web pages. 彎裾慳裊窗航呱洽羅揸泣港篪躺ASP.NET supports XML W

44、eb services. An XML Web service is a component containing business functionality that enables applications to exchange information across firewalls using standards like HTTP and XML messaging. XML Web services are not tied to a particular component technology or object-calling convention. As a resul

45、t, programs written in any language, using any component model, and running on any operating system can access XML Web services. 溝榻敢蛾氮徘遞兢渲虜嶸芡鴯釙ASP.NET includes an extensible hosting environment that controls the life cycle of an application from when a user first accesses a resource (such as a page)

46、 in the application to the point at which the application is shut down. While ASP.NET relies on a Web server (IIS) as an application host, ASP.NET provides much of the hosting functionality itself. The architecture of ASP.NET enables you to respond to application events and create custom HTTP handle

47、rs and HTTP modules. 柢芤潿膛芻忐洞錮烤詰臊涎厚迂ASP.NET includes enhanced support for creating designers for Web server controls for use with a visual design tool such as Visual Studio. Designers enable you to build a design-time user interface for a control, so that developers can configure your controls proper

48、ties and content in the visual design tool. 仍仗緹祉礬旃錨束怙綹撤瀕駱桔Introduction to the C# Language and the .NET Framework C# is an elegant and type-safe object-oriented language that enables developers to build a wide range of secure and robust applications that run on the .NET Framework. You can use C# to c

49、reate traditional Windows client applications, XML Web services, distributed components, client-server applications, database applications, and much, much more. Microsoft Visual C# 2005 provides an advanced code editor, convenient user interface designers, integrated debugger, and many other tools t

50、o facilitate rapid application development based on version 2.0 of the C# language and the .NET Framework.羰應(yīng)噔柚淋疚掏岱綽獠客捧呲戩Note 弈刃齊霏猓檑議班菖縝卞喟緲僮The Visual C# documentation assumes that you have an understanding of basic programming concepts. If you are a complete beginner, you might want to explore Visua

51、l C# Express Edition, which is available on the Web. You can also take advantage of any of several excellent books and Web resources on C# to learn practical programming skills.鷦令襦擤緶隗軼爰縻敷褳袤跋孳桕硒撣寵溪蓮醑竟詭郎饑捅豳勖C# syntax is highly expressive, yet with less than 90 keywords, it is also simple and easy to l

52、earn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C+ or Java. Developers who know any of these languages are typically able to begin working productively in C# within a very short time. C# syntax simplifies many of the complexities of C+ while providing pow

53、erful features such as nullable value types, enumerations, delegates, anonymous methods and direct memory access, which are not found in Java. C# also supports generic methods and types, which provide increased type safety and performance, and iterators, which enable implementers of collection class

54、es to define custom iteration behaviors that are simple to use by client code.儋磲擔(dān)涸檎卓陜丙驗(yàn)卵滌瀟炮紳As an object-oriented language, C# supports the concepts of encapsulation, inheritance and polymorphism. All variables and methods, including the Main method, the applications entry point, are encapsulated wi

55、thin class definitions. A class may inherit directly from one parent class, but it may implement any number of interfaces. Methods that override virtual methods in a parent class require the override keyword as a way to avoid accidental redefinition. In C#, a struct is like a lightweight class; it i

56、s a stack-allocated type that can implement interfaces but does not support inheritance.如唧熨疒吟鵯掣棕瞧髕霽嫠我翎In addition to these basic object-oriented principles, C# facilitates the development of software components through several innovative language constructs, including:薯艙碇弄智湃蘚錟靂嘩岈唬氕矢 Encapsulated met

57、hod signatures called delegates, which enable type-safe event notifications.談虱蒿距颯呔吾危運(yùn)噩藍(lán)焦荃霞 Properties, which serve as accessors for private member variables. 嚅辮剡塔茄氌蟠動放籃磁邙酩紺 Attributes, which provide declarative metadata about types at run time. 擯罰繒踺髕犭鷚鬼冕貰合怊荻歇 Inline XML documentation comments.迪濞撞紫種弭

58、期觫祭保隳趼瀆眵If you need to interact with other Windows software such as COM objects or native Win32 DLLs, you can do this in C# through a process called Interop. Interop enables C# programs to do just about anything that a native C+ application can do. C# even supports pointers and the concept of unsafe

59、 code for those cases in which direct memory access is absolutely critical.土彈腫酷锘泡銣瘭中燎灞蕪防碉The C# build process is simple compared to C and C+ and more flexible than in Java. There are no separate header files, and no requirement that methods and types be declared in a particular order. A C# source file may define any number of classes, structs, interface

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論