Asp.Net 3.5 In Simple Steps- P12

In Simple Steps- P12:This is a book that helps you to learn using Visual Studio 2008. Precision, an easy-to-understanding style, real life examples in support of the concepts, and practical approach in presentation are some of the features that make the book unique in itself. The text in the book is presented in such a way that is equally helpful to beginners as well as professionals. | Urheberrechtlich geschütztes Bild Urheberrechtlich geschütztes Material in Simple Steps Introduction Validation controls are controls used tor validating the data entered in an input control such as the textbox of a Web page. When a user enters invalid data in an associated control the validation control displays an error message on the screen. The data entered by a user is validated each time it is entered and the error message disappears only when he data is found valid. Validation controls help save time and enhance the efficiency of the applications by validating the data before a request is sent to the server. In this chapter we discuss the following Validation controls The RequiredFieldValidator control The RangeValidator control The RegularExpressionValidator control The CompareValidator control The Custom Validator control The ValidationSummary control In addition to the preceding Validation controls we discuss the ValidationCroup property. Now before exploring these controls let s know about the BaseValidator class which forms the base class for all validation controls. The BaseValidator Class The class is the base class for all Validation controls. It provides the basic implementation needed for all Validation controls. Here is the inheritance hierarchy of this class Noteworthy public properties of the BaseValidator class are listed in Table 104 echtlich geschütztes Chapter 5 Validation Controls Noteworthy public methods of the BaseValidator class are listed in Table Now let s discuss the Validation controls in details one by one. The RequiredFieldValidator Control The RequiredFieldValidator control ensures that the user has entered the required data in the input control such as the TextBox control to which it is bound. For example if you are entering data to buy a T-shirt in an input control then it is necessary to enter the size of the T-shirt that you want to buy. Ii you do not enter the size

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
106    114    3    09-06-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.