Update index.md (#8970)

pull/8980/head
EthanR 2018-10-11 07:10:02 -04:00 committed by Luke Latham
parent c0c168784b
commit 7cc7b6a5b0
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ Here is an example of a rendered delete button with a customer contact ID of `1`
<button type="submit" formaction="/?id=1&amp;handler=delete">delete</button> <button type="submit" formaction="/?id=1&amp;handler=delete">delete</button>
``` ```
When the button is selected, a form `POST` request is sent to the server. By convention, the name of the handler method is selected based the value of the `handler` parameter according to the scheme `OnPost[handler]Async`. When the button is selected, a form `POST` request is sent to the server. By convention, the name of the handler method is selected based on the value of the `handler` parameter according to the scheme `OnPost[handler]Async`.
Because the `handler` is `delete` in this example, the `OnPostDeleteAsync` handler method is used to process the `POST` request. If the `asp-page-handler` is set to a different value, such as `remove`, a page handler method with the name `OnPostRemoveAsync` is selected. Because the `handler` is `delete` in this example, the `OnPostDeleteAsync` handler method is used to process the `POST` request. If the `asp-page-handler` is set to a different value, such as `remove`, a page handler method with the name `OnPostRemoveAsync` is selected.