【正文】
this includes C (pronounced See Sharp), (the .NET version of JavaScript), and the Managed Extensions to C++. NOTE The CD included with this book contains C versions of all the code samples. Dozens of other languages created by panies other than Microsoft have been developed to work with the .NET framework. Some examples of these other languages include Python, SmallTalk, Eiffel, and COBOL. This means that you could, if you really wanted to, write pages using COBOL. Regardless of the language that you use to develop your pages, you need to understand that pages are piled before they are executed. This means that pages can execute very quickly. The first time you request an page, the page is piled into a .NET class, and the resulting class file is saved beneath a special directory on your server named Temporary Files. For each and every page, a corresponding class file appears in the Temporary Files directory. Whenever you request the same page in the future, the corresponding class file is executed. When an page is piled, it is not piled directly into machine code. Instead, it is piled into an intermediatelevel language called Microsoft Intermediate Language (MSIL). All .NETpatible languages are piled into this intermediate language. An page isn39。它包含了一組滿足各種可以想象到的需求的類。 而且這些語(yǔ)言都包含了相似的變成結(jié)構(gòu)。在很多語(yǔ)言中,你都可以表達(dá)出字符串類型和整型。舉例來(lái)說(shuō), . 框架包含了處理 數(shù)據(jù)庫(kù)訪問(wèn)的一組類。 最重要的也是本書的主要目的, . 框架類庫(kù)包含了用來(lái)建立 頁(yè)面的類。還好的是,這些類不是雜亂的拼在一起的。 命名空間就是對(duì)類進(jìn)行邏輯上的劃分。這個(gè)命名空間包含了所有與基礎(chǔ)數(shù)據(jù)類型相關(guān)的類,比如字符串和數(shù)組。 注意 如果想要瀏覽在 . 框架類庫(kù)中的所有的關(guān)于標(biāo)準(zhǔn)類的命名空間,你可以通過(guò)瀏覽參考文檔。 ? hash 表和數(shù)組列表這些標(biāo)準(zhǔn)集合類型的類。 ? 換的操作的類。 ? session 的狀態(tài)的一些類。 .NET 框架兼容的語(yǔ)言 這本書的目的,是使你會(huì) 使用 Visual Basic 作為您的編程語(yǔ)言 來(lái)實(shí)現(xiàn) 頁(yè)。 注意 隨本書攜帶的 CD 包含 C #所有版本的代碼示例。 無(wú)論您使用何種語(yǔ)言來(lái)建立你的 頁(yè),你必須明白 頁(yè) 首先匯編,然后才執(zhí)行 。在未來(lái)當(dāng)你 請(qǐng) 求同一 頁(yè)面 時(shí) ,相應(yīng)的類文件 就會(huì) 被執(zhí)行。在這一點(diǎn)上, 在 Temporary Files 文件目錄中包含 的 類文件 只有在編譯和執(zhí)行的時(shí)候被 . NET Framework 編譯。 不支持腳本,這是 確實(shí)是 一個(gè)好消息。這 就 意味著,如果 你 使用 Visual Basic 重寫 你用 VBScript 編寫的實(shí)現(xiàn)相同功能 的代碼, 你 可以得到更好的性能。 你 可以使用此工具,查看拆卸任何在 Temporary 文件 目錄 中 的 類的 代碼。 。 此工具也可以作用于所有 在本 章中討論 控件。由于 VBScript 與 Visual Basic 有著十分緊密的關(guān)系 中,你會(huì)發(fā)現(xiàn) 實(shí)現(xiàn)兩種語(yǔ)言的 過(guò)渡 是十分容易的 。所以,你 可以用 Visual Basic 實(shí)現(xiàn) 更豐富 多樣的功能 。所有你需要做的就是為你的 頁(yè) 源代碼創(chuàng)建一個(gè)文本文件 ,并 且 .NET framework將會(huì) 處理所有 困難的 工作, 并為 你 把它轉(zhuǎn)換成 匯編代碼。相反, 是將 它編譯成 稱為微軟中間語(yǔ)言( MSIL ) 的 中 間 語(yǔ)言 ,所有 與 . NET 兼容的語(yǔ)言 都將被編譯成中間語(yǔ)言。 您第一次請(qǐng)求 頁(yè),該頁(yè) 首 匯編成 . NET 類, 匯編 產(chǎn)生的類文件 將 保存 在你 的服務(wù)器上 的 一個(gè)特殊的目錄命名為 Temporary Files 文件