Validating windows forms

posted by | Leave a comment

All of the above attributes also allow you to specify an error message that is displayed in the event of an error.

If an error message is not specified, a default error message is displayed.

The [Url] attribute checks whether a property value is a valid URL.

validating windows forms-18

The [Email Address] attribute validates a property for a valid email address.However, in this case our model class is an Entity Framework class.Since the data model class is automatically created for you by the Visual Studio designer it is not recommended to modify the same class file.The User Profile Metadata class contains property definitions for First Name, Last Name, Email, Bio, Age, Blog Url and Phone.Notice the attributes that are used to decorate these properties.

Leave a Reply

not updating since new heads added