TAILIEUCHUNG - Validate Data Using Validation Controls

Xác nhận dữ liệu Sử dụng điều khiển Xác Nhận Tôi muốn để có thể xác nhận các loại hình nhập dữ liệu mà không cần phải chờ đợi cho một lỗi trở về từ máy chủ. Tôi có thể xác nhận dữ liệu của tôi trên Form Web của tôi? | Validate Data Using Validation Controls I want to be able to validate various types of data entry without having to wait for an error to come back from the server. Can I validate my data on my Web Form Note A note of caution Through the writing and tech editing of this chapter there have been some inconsistencies noted in the reaction of some of the validator controls. The tech editor and I both contend that this area might have some .NET bugs. This is also the reason for the lack of coverage in the CustomValidator. Technique One new feature found in is the inclusion of Validation Web server controls. These validation controls allow you to specify other controls of which you want to validate based on data entered into the controls. You can then do the following Have the Validation control display an error message. Test at a page level to see if all controls that are being validated are valid. Display a list of error messages for all the controls that are being validated. Available Validation Web Server Controls You will find the controls for validation in the toolbox and can see them listed in Table with a description of what they validate. Table . Validation Web Server Controls Control Description RequiredFieldValidator Validates whether the specified control has been left blank. CompareValidator Compares the values in two controls and validates whether they are equal. RangeValidator Checks to see if the value entered into a control falls within a range that is specified. RegularExpressionValidator Compares a value entered into a control to see if it matches an entered mask such as 999-99-9999 which is the . Social Security Number. Custom V alidator Allows you to create custom functions on both the client and server side for validation. ValidationSummary Used to consolidate the messages that all validation controls return on a page into a list-like format. The main properties you will set on a validation control are FieldToValidate and .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.