From d83f05c16e93415fb9166f67014ab0769cd56629 Mon Sep 17 00:00:00 2001 From: Ray Dixon <4732842+raydixon@users.noreply.github.com> Date: Fri, 19 Jun 2020 13:50:11 -0700 Subject: [PATCH] fixing minor errors in validation.md (#18871) Fixing minor grammatical and formatting issues. --- aspnetcore/tutorials/razor-pages/validation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aspnetcore/tutorials/razor-pages/validation.md b/aspnetcore/tutorials/razor-pages/validation.md index 5011fe2de7..31e9705e43 100644 --- a/aspnetcore/tutorials/razor-pages/validation.md +++ b/aspnetcore/tutorials/razor-pages/validation.md @@ -109,7 +109,7 @@ Examine the `Movie` class. The `System.ComponentModel.DataAnnotations` namespace The `DataType` attributes only provide hints for the view engine to format the data (and supplies attributes such as `` for URL's and `` for email). Use the `RegularExpression` attribute to validate the format of the data. The `DataType` attribute is used to specify a data type that's more specific than the database intrinsic type. `DataType` attributes are not validation attributes. In the sample application, only the date is displayed, without time. -The `DataType` Enumeration provides for many data types, such as Date, Time, PhoneNumber, Currency, EmailAddress, and more. The `DataType` attribute can also enable the application to automatically provide type-specific features. For example, a `mailto:` link can be created for `DataType.EmailAddress`. A date selector can be provided for `DataType.Date` in browsers that support HTML5. The `DataType` attributes emits HTML 5 `data-` (pronounced data dash) attributes that HTML 5 browsers consume. The `DataType` attributes do **not** provide any validation. +The `DataType` Enumeration provides for many data types, such as Date, Time, PhoneNumber, Currency, EmailAddress, and more. The `DataType` attribute can also enable the application to automatically provide type-specific features. For example, a `mailto:` link can be created for `DataType.EmailAddress`. A date selector can be provided for `DataType.Date` in browsers that support HTML5. The `DataType` attributes emit HTML 5 `data-` (pronounced data dash) attributes that HTML 5 browsers consume. The `DataType` attributes do **not** provide any validation. `DataType.Date` doesn't specify the format of the date that's displayed. By default, the data field is displayed according to the default formats based on the server's `CultureInfo`. @@ -128,9 +128,9 @@ The `DisplayFormat` attribute can be used by itself, but it's generally a good i * The browser can enable HTML5 features (for example to show a calendar control, the locale-appropriate currency symbol, email links, etc.) * By default, the browser will render data using the correct format based on your locale. -* The `DataType` attribute can enable the ASP.NET Core framework to choose the right field template to render the data. The `DisplayFormat` if used by itself uses the string template. +* The `DataType` attribute can enable the ASP.NET Core framework to choose the right field template to render the data. The `DisplayFormat`, if used by itself, uses the string template. -Note: jQuery validation doesn't work with the `Range` attribute and `DateTime`. For example, the following code will always display a client-side validation error, even when the date is in the specified range: +**Note:** jQuery validation doesn't work with the `Range` attribute and `DateTime`. For example, the following code will always display a client-side validation error, even when the date is in the specified range: ```csharp [Range(typeof(DateTime), "1/1/1966", "1/1/2020")]