Validating user control Live adult web cam community


16-Nov-2017 17:11

For example, if you have a text box that must contain a postal code, you can perform the validation in the following ways: The Validating event is supplied an object of type Cancel Event Args.

The control's Validating events are used to validate the data and report the error to the Error Provider if there is any.

If you need to require users to enter data in a well-defined format, such as a telephone number or a part number, you can accomplish this quickly and with minimal code by using the Masked Text Box control.

A is a string made up of characters from a masking language that specifies which characters can be entered at any given position in the text box. If the user types an incorrect entry, for example, the user types a letter when a digit is required, the control will automatically reject the input.

Validation is very useful when you have bound your controls to a data source, such as a database table.

By using validation, you can make sure that your control's data satisfies the format required by the data source, and that it does not contain any special characters such as quotation marks and back slashes that might be unsafe.

This work great when the user enter wrong informations into the control and leaves the control.



Below are the most common reasons: This site uses cookies to improve performance by remembering that you are logged in when you go from page to page.… continue reading »


Read more