TAILIEUCHUNG - Asp.Net 3.5 In Simple Steps- P13

In Simple Steps- P13: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. | Chapter 5 Validation Controls The RegularExpressionValidator controls check for a valid e-mail address and a valid URL and if the user has not entered valid values the RegularExpressionValidator control displays an error message as shown in . Now you know how to implement the RegularExpressionValidator control let s move further to understand about the CompareValidator control. The CompareValidator Control The CompareValidator control is used to compare the value entered by the user into one Input control with the value entered into another or with an already existing value. The CompareValidator control exists within the .WebControls namespace. Various Operator property types are listed in Table The Type properly is used to obtains or specifies the data type of both he comparison values. String is the default type. Both values are automatically converted to this data type before the comparison operation is performed. Here are the different data types that you can use String A siring data type. Integer An integer data type. Double A double data type. Date A date data type. Currency A currency data type. Noteworthy public properties of the CompareValidator class are listed in Table 113 in Simple Steps In many websites value tor two controls are compared to verify authentic values for example while creating a user password and confirm password text box in a website compares values with each other to maintain the authenticity of a user. Using the CompareValidator Control Now we explain how this Validator control is used. Let s learn the procedure of using the CompareValidator control by performing the following steps 1. Open Microsoft Visual Studio 2008. 2. Select File- New- Web Site. 3. Select Web Site and name it CompareValidator. 4. Drag and drop three Label controls two TexlBox controls and one Button control from Toolbox and set the properties of the following controls as listed in Table 5. Urag and drop

Đã 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.