You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -370,6 +370,70 @@ bc<body>=green
370
370
371
371
> Note: When a request is made with WebFormJS, a header with the name `Post-Back` and the value `true` is also sent to the server. Therefore, it is easy to determine the response approach on the server.
372
372
373
+
## Multiple-Responses
374
+
375
+
Multiple-Responses is a useful feature in WebFormsJS that allows us to send multiple related responses in a single server response. The multi-response feature is a functionality similar to a JavaScript file that contains multiple offline functions (things that are not requested from the server).
376
+
377
+
In multiple-responses, action controls are separated by a `#` character. To execute the response, we need to add the `#` character and the index to the end of the path.
Requesting `/my-view.aspx#MyIndex` or `/my-view.aspx#3`
427
+
428
+
The following action controls are performed:
429
+
```
430
+
as[h2:nth-of-type(2)=margin:10px 20px
431
+
bc<form>|<p>=violet
432
+
tc<form>|<p>=yellow
433
+
```
434
+
435
+
> Note: Multiple-Responses are mostly used for offline cases and it is recommended to enable HTML headers for long-term client-side caching for multiple responses.
436
+
373
437
## PostBack and GetBack and TagBack method
374
438
375
439
`PostBack` and `GetBack` are two methods in WebFormsJS.
0 commit comments