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
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -512,28 +512,28 @@ Example:
512
512
513
513
There are three overloads for the `GetBack` method:
514
514
515
-
-**`GetBack()`:** Requests the current URL path executed in the browser.
516
-
-**`GetBack(this)`:** Should be used only in situations where the form tag must be present on the page. If executed inside a form, the action path requests the form, otherwise it requests the path of the first form on the page.
517
-
-**`GetBack("YourURL")`:** Requests the URL path entered as an argument.
515
+
-**`GetBack(event)`:** Requests the current URL path executed in the browser.
516
+
-**`GetBack(event, this)`:** Should be used only in situations where the form tag must be present on the page. If executed inside a form, the action path requests the form, otherwise it requests the path of the first form on the page.
517
+
-**`GetBack(event, "YourURL")`:** Requests the URL path entered as an argument.
518
518
519
-
Calling WebFormJS in HTML pages causes submit buttons to automatically get the onclick attribute with `PostBack(this)` value.
519
+
Calling WebFormJS in HTML pages causes submit buttons to automatically get the onclick attribute with `PostBack(event)` value.
520
520
521
-
`<input name="btn_Button" type="submit" value="Click to send data" onclick="PostBack(this)"/>`
521
+
`<input name="btn_Button" type="submit" value="Click to send data" onclick="PostBack(event)"/>`
522
522
523
523
If you call the `PostBack` method as below, the contents of the page will remain and the values will be added to the beginning of the inner content of the body tag.
524
524
525
-
`PostBack(this, true)`
525
+
`PostBack(event, true)`
526
526
527
527
You can specify where to add content instead of true.
528
528
529
529
Example1:
530
530
531
-
`PostBack(this, "<div>2")`
531
+
`PostBack(event, "<div>2")`
532
532
The above method places the data received from the server inside the third `div` tag.
533
533
534
534
Example2:
535
535
536
-
`PostBack(this, "MyTagId")`
536
+
`PostBack(event, "MyTagId")`
537
537
The above method puts the data received from the server inside a tag or `MyTagId` id.
538
538
539
539
> Note: Examples 1 and 2 for the `GetBack` method also have the same function.
@@ -542,7 +542,7 @@ The above method puts the data received from the server inside a tag or `MyTagId
542
542
543
543
Example:
544
544
545
-
`TagBack ("(my-class)-1")`
545
+
`TagBack (event, "(my-class)-1")`
546
546
The above method renders the action control of the last web-forms tag whose class name is my-class.
547
547
548
548
Example web-forms tag
@@ -553,6 +553,6 @@ Example web-forms tag
553
553
554
554
Example:
555
555
556
-
`WebSocketBack("/YourURL")`
556
+
`WebSocketBack(event, "/YourURL")`
557
557
558
558
The above method creates a WebSocket connection to the path "/YourURL".
0 commit comments