外文翻译---aspnet概述-jsp程序(编辑修改稿)内容摘要:
to the particular class. The classes contained in a select number of namespaces are available in your pages by default. (You must explicitly import other namespaces.) These default namespaces contain classes that you use most often in your applications: System— Contains all the base data types and other useful classes such as those related to generating random numbers and working with dates and times. — Contains classes for working with standard collection types such as hash tables, and array lists. — Contains classes that represent specialized collections such as linked lists and string collections. — Contains classes for working with configuration files ( files). — Contains classes for encoding, decoding, and manipulating the contents of strings. — Contains classes for performing regular expression match and replace operations. — Contains the basic classes for working with the World Wide Web, including classes for representing browser requests and server responses. — Contains classes used for caching the content of pages and classes for performing custom caching operations. — Contains classes for implementing authentication and authorization such as Forms and Passport authentication. — Contains classes for implementing session state. — Contains the basic classes used in building the user interface of pages. — Contains the classes for the HTML controls. — Contains the classes for the Web controls. You can choose C or or C++ or Visual Basic to program page. 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。 t piled into native machine code until it is actually requested by a browser. At that point, the class file contained in the Temporary Files directory is piled with the .NET framework Just in Time (JIT) piler and executed. The magical aspect of this whole process is that it happens automatically in the background. All you have to do is create a text file with the source code for your page. Forms with Web Server Controls Useingseveral of the basic Web controls to represent standard HTML form elements such as radio buttons, text boxes, and list boxes. You can use these controls in your pages to create the user interface for your Web application.. Form Validation with Validation Controls Traditionally, Web developers have faced a tough choice when adding form validation logic to their pages. You can add form validation routines to your serverside code, or you can add the validation routines to your clientside code. The advantage of writing validation logic in clientside code is that you can provide instant feedback to your users. For example, if a user neglects to enter a value in a required form field, you can instantly display an error message without requiring a roundtrip back to the really like clientside validation. It looks great and creates a better overall user experience. The problem, however, is that it does not work with all browsers. Not all browsers support JavaScript, and different versions of browsers support different versions of JavaScript, so clientside validation is never guaranteed to this reason, in the past, many developers decided to add all their form validation logic exclusively to serverside code. Because serverside code functions correctly with any browser, this course of action was safer. At the same time, The Validation controls automatically generate both clientside and serverside code. If a browser is capable of supporting JavaScript, clientside validation scripts are automatically sent to the browser. If a browser is incapable of supporting JavaScript, the validation routines are automatically implemented in serverside code. Requiring Fields: The RequiredFieldValidator Control You use RequiredFieldValidator in a Web form to check whether a control has a value. Typically, you use this control with a TextBox control. However, nothing is wrong with using RequiredFieldValidator with other input controls such as RadioButtonList. Validating Expressions: The RegularExpressionValidator Control You can use RegularExpressionValidator to match the value entered into a。外文翻译---aspnet概述-jsp程序(编辑修改稿)
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。
用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。