diff --git a/samples/TagHelperSample.Web/Views/Home/Create.cshtml b/samples/TagHelperSample.Web/Views/Home/Create.cshtml index 004a242787..ac1733679c 100644 --- a/samples/TagHelperSample.Web/Views/Home/Create.cshtml +++ b/samples/TagHelperSample.Web/Views/Home/Create.cshtml @@ -9,48 +9,47 @@

Create

@* anti-forgery is on by default *@ -@* form will special-case anything that looks like a URI i.e. contains a '/' or doesn't match an action *@ -
+@* tag helper will special-case only elements with an "asp-action" or "asp-anti-forgery" attribute. *@ +
@* validation summary tag helper will target just
elements and append the list of errors *@ - @* - i.e. this helper, like helper, has ContentBehavior.Append *@ + @* helper does nothing if model is valid and (client-side validation is disabled or asp-validation-summary="ModelOnly") *@ @* don't need a bound attribute to match Html.ValidationSummary()'s headerTag parameter; users wrap message as they wish *@ @* initially at least, will not remove the
if list isn't generated *@ @* - should helper remove the
if list isn't generated? *@ @* - (Html.ValidationSummary returns empty string despite non-empty message parameter) *@ @* Acceptable values are: "None", "ModelOnly" and "All" *@ -
+
This is my message
@* element will have correct name and id attributes for Id property. unusual part is the constant value. *@ @* - the helper will _not_ override the user-specified "value" attribute *@ - +
- @* no special-case for the "for" attribute; may eventually need to opt out on per-element basis here and in *@ -
-
-