What is the difference between Page.IsPostBack and Page.IsCallBack?

前端 未结 5 673
南方客
南方客 2020-12-07 18:51

I\'ve recently ran into some code that checks Page.IsCallBack but I wasn\'t sure how it is different from Page.IsPostBack. Can anyone enlighten me?

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 19:28

    A postback is when the form is posted back to itself, either by clicking a submit button or through Javascript (like AutoPostback controls)

    A callback is when an AJAX Control calls a method on the page as part of an ajax request

提交回复
热议问题