Update index.md (#8970)
parent
c0c168784b
commit
7cc7b6a5b0
|
@ -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&handler=delete">delete</button>
|
<button type="submit" formaction="/?id=1&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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue