Light Freshness Edit: ASP.NET - mvc#37085
Conversation
|
@tdykstra @wadepickett this PR is ready for review. Top comment has an overview. Note I ran into an issue on the previous PR (also in top comment) so pushed all those changes here along with the new ones. Let me know if any additional change requests, thank you! |
| ## More view features | ||
|
|
||
| [Tag Helpers](xref:mvc/views/tag-helpers/intro) make it easy to add server-side behavior to existing HTML tags. Using Tag Helpers avoids the need to write custom code or helpers within your views. Tag helpers are applied as attributes to HTML elements and are ignored by editors that can't process them. This allows you to edit and render view markup in a variety of tools. | ||
| [Tag Helpers](xref:mvc/views/tag-helpers/intro) make it easy to add server-side behavior to existing HTML tags. Using Tag Helpers avoids the need to write custom code or helpers within your views. Tag helpers are applied as attributes to HTML elements and editors that can't process them ignore them. This allows you to edit and render view markup in a variety of tools. |
There was a problem hiding this comment.
| [Tag Helpers](xref:mvc/views/tag-helpers/intro) make it easy to add server-side behavior to existing HTML tags. Using Tag Helpers avoids the need to write custom code or helpers within your views. Tag helpers are applied as attributes to HTML elements and editors that can't process them ignore them. This allows you to edit and render view markup in a variety of tools. | |
| [Tag Helpers](xref:mvc/views/tag-helpers/intro) make it easy to add server-side behavior to existing HTML tags. Using Tag Helpers avoids the need to write custom code or helpers within your views. Tag helpers are applied as attributes to HTML elements and are ignored by editors that can't process them. This allows you to edit and render view markup in a variety of tools. |
Minor item: "them ignore them" seemed a bit awkward. See if you think this is better.
| [!code-cshtml[](../../common/samples/WebApplication1/Views/Home/About.cshtml)] | ||
|
|
||
| [Razor markup](xref:mvc/views/razor) starts with the `@` symbol. Run C# statements by placing C# code within [Razor code blocks](xref:mvc/views/razor#razor-code-blocks) set off by curly braces (`{ ... }`). For example, see the assignment of "About" to `ViewData["Title"]` shown above. You can display values within HTML by simply referencing the value with the `@` symbol. See the contents of the `<h2>` and `<h3>` elements above. | ||
| [Razor markup](xref:mvc/views/razor) starts with the `@` symbol. Run C# statements by placing C# code within [Razor code blocks](xref:mvc/views/razor#razor-code-blocks) set off by curly braces (`{ ... }`). For example, see the assignment of "About" to `ViewData["Title"]` shown previously. You can display values within HTML by simply referencing the value with the `@` symbol. See the contents of the `<h2>` and `<h3>` elements previous. |
There was a problem hiding this comment.
| [Razor markup](xref:mvc/views/razor) starts with the `@` symbol. Run C# statements by placing C# code within [Razor code blocks](xref:mvc/views/razor#razor-code-blocks) set off by curly braces (`{ ... }`). For example, see the assignment of "About" to `ViewData["Title"]` shown previously. You can display values within HTML by simply referencing the value with the `@` symbol. See the contents of the `<h2>` and `<h3>` elements previous. | |
| [Razor markup](xref:mvc/views/razor) starts with the `@` symbol. Run C# statements by placing C# code within [Razor code blocks](xref:mvc/views/razor#razor-code-blocks) set off by curly braces (`{ ... }`). For example, see the assignment of "About" to `ViewData["Title"]` shown previously. You can display values within HTML by simply referencing the value with the `@` symbol. See the contents of the `<h2>` and `<h3>` elements previously. |
Minor item: "previous" to "previously".
| > Controllers shouldn't be overly complicated by too many responsibilities. To keep controller logic from becoming overly complex, push business logic out of the controller and into the domain model. | ||
|
|
||
| > | ||
| >[!TIP] |
There was a problem hiding this comment.
| >[!TIP] | |
| > [!TIP] |
Minor: space was missing.
|
|
||
| * The "int" element wasn't closed. All elements must be either self-closing or have a matching end tag. | ||
| * Cannot convert method group 'GenericMethod' to non-delegate type 'object'. Did you intend to invoke the method?` | ||
| * Can't convert method group 'GenericMethod' to non-delegate type 'object'. Did you intend to invoke the method?` |
There was a problem hiding this comment.
| * Can't convert method group 'GenericMethod' to non-delegate type 'object'. Did you intend to invoke the method?` | |
| * Cannot convert method group 'GenericMethod' to non-delegate type 'object'. Did you intend to invoke the method?` |
Compiler error messages are verbatim output from the C# compiler and should not be altered for style.
wadepickett
left a comment
There was a problem hiding this comment.
Looks great! I found a few small item and one medium one to fix before we merge.
This PR contains freshness updates to the following articles:
[Answered by Wade in other now closed PR here pushed to this PR] Row 119, the link https://jqueryvalidation.org/ goes to a page with an invalid SSL and host error. Perhaps they're in the process of updating but curious if you want to remove, replace, or leave as is? I did search for a replacement in case we want to replace but didn't locate anything.
Minor grammar/style updates. Link updates.
For request details, see 568764
Internal previews