asp.net 技術(shù)[外文翻譯].doc
asp.net 技術(shù)[外文翻譯],asp.net 技術(shù)[外文翻譯]包括中文翻譯和英文原文asp.net 技術(shù)1.構(gòu)建 asp.net 頁面asp.net 和asp.net結(jié)構(gòu)asp.net 是微軟.net framework整體的一部分, 它包含一組大量的編程用的類,滿足各種編程需要。 在下列的二個部分中, 你如何學(xué)會 asp.net 很適合的放在.n...
內(nèi)容介紹
此文檔由會員 果酸 發(fā)布ASP.NET 技術(shù)[外文翻譯]
包括中文翻譯和英文原文
ASP.NET 技術(shù)
1.構(gòu)建 ASP.NET 頁面
ASP.NET 和ASP.NET結(jié)構(gòu)
ASP.NET 是微軟.NET framework整體的一部分, 它包含一組大量的編程用的類,滿足各種編程需要。 在下列的二個部分中, 你如何學(xué)會 ASP.NET 很適合的放在.NET framework, 和學(xué)會能在你的 ASP.NET 頁面中使用語言。
.NET類庫
假想你是微軟。 假想你必須支持大量的編程語言-比如 Visual Basic 、 JScript 和 C++. 這些編程語言的很多功能具有重疊性。 舉例來說,對于每一種語言,你必須包括存取文件系統(tǒng)、與數(shù)據(jù)庫協(xié)同工作和操作字符串的方法。
此外,這些語言包含相似的編程構(gòu)造。 每種語言,舉例來說,都能夠使用循環(huán)語句和條件語句。 即使用 Visual Basic 寫的條件語句的語法不與 用C++ 寫的不一樣,程序的功能也是相同的。
最后,大多數(shù)的編程語言有相似的數(shù)據(jù)變量類型。 以大多數(shù)的語言,你有設(shè)定字符串類型和整型數(shù)據(jù)類型的方法。舉例來說, 整型數(shù)據(jù)最大值和最小值可能依賴語言的種類,但是基本的數(shù)據(jù)類型是相同的。
對于多種語言來說維持這一功能需要很大的工作量。 為什么繼續(xù)再創(chuàng)輪子? 對所有的語言創(chuàng)建這種功能一次,然后把這個功能用在每一種語言中豈不是更容易......
ASP.NET Technique
1. Building ASP.NET Pages
ASP.NET and the .NET Framework
ASP.NET is part of Microsoft's overall .NET framework, which contains a vast set of programming classes designed to satisfy any conceivable programming need. In the following two sections, you learn how ASP.NET fits within the .NET framework, and you learn about the languages you can use in your ASP.NET pages.
The .NET Framework Class Library
Imagine that you are Microsoft. Imagine that you have to support multiple programming languages—such as Visual Basic, JScript, and C++. A great deal of the functionality of these programming languages overlaps. For example, for each language, you would have to include methods for accessing the file system, working with databases, and manipulating strings.
Furthermore, these languages contain similar programming constructs. Every language, for example, can represent loops and conditionals. Even though the syntax of a conditional written in Visual Basic differs from the syntax of a conditional written in C++, the programming function is the same.
Finally, most programming languages have similar variable data types. In most languages, you have some means of representing strings and integers, for example. The maximum and minimum size of an integer might depend on the language, but the basic data type is the same.
Maintaining all this functionality for multiple languages requires a lot of work. Why keep reinventing the wheel? Wouldn't it be easier to create all this functionality once and use it for every language ......