What does IsPostBack actually mean?

后端 未结 5 687
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 09:37

I am interested to know what specifically Page.IsPostBack means. I am fully aware of it\'s day to day use in a standard ASP.NET page, that it indicates that the user is sub

5条回答
  •  难免孤独
    2021-01-05 10:07

    Generally a you could view a PostBack as a combination of:

    1. HTTP request method equals "POST"
    2. HTTP header HTTP_REFERER equals the current URL

    That's not 100% foolproof tho, it does not take into account any state of any kind (which you probably want even if you don't know it) but it is a post, back to the current page.

提交回复
热议问题