Skip to content

Commit

Permalink
Merge pull request dotnet#4338 from badersur/use-xref-link
Browse files Browse the repository at this point in the history
Use xref link
  • Loading branch information
scottaddie authored Sep 20, 2017
2 parents 9bde6f0 + 68e9483 commit ed1ce7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnetcore/data/ef-mvc/sort-filter-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ In *Views/Student/Index.cshtml*, add the highlighted code immediately before the

[!code-html[](intro/samples/cu/Views/Students/Index3.cshtml?range=9-23&highlight=5-13)]

This code uses the `<form>` [tag helper](https://docs.microsoft.com/aspnet/core/mvc/views/tag-helpers/intro) to add the search text box and button. By default, the `<form>` tag helper submits form data with a POST, which means that parameters are passed in the HTTP message body and not in the URL as query strings. When you specify HTTP GET, the form data is passed in the URL as query strings, which enables users to bookmark the URL. The W3C guidelines recommend that you should use GET when the action does not result in an update.
This code uses the `<form>` [tag helper](xref:mvc/views/tag-helpers/intro) to add the search text box and button. By default, the `<form>` tag helper submits form data with a POST, which means that parameters are passed in the HTTP message body and not in the URL as query strings. When you specify HTTP GET, the form data is passed in the URL as query strings, which enables users to bookmark the URL. The W3C guidelines recommend that you should use GET when the action does not result in an update.

Run the page, enter a search string, and click Search to verify that filtering is working.

Expand Down

0 comments on commit ed1ce7f

Please sign in to comment.