Is there a difference between an F5 browser refresh and postback??(asp.NET)

前端 未结 3 1393
难免孤独
难免孤独 2021-01-07 03:58

I am dynamically creating dragrids in different rows of an existing datagrid in asp.NET

My generated datagrids have a column which is TemplateColumn (a CheckBox Colu

3条回答
  •  庸人自扰
    2021-01-07 04:31

    Ideally it is a PostBack but it will depend on your Browser Settings if you have set it to Request page from Server for every visit or it picks from the Local Histroy Cache.

    Hitting the Refresh button will make a new request to the page from the server , and it will not change the status of the Http Method(Get , Post) , I mean it will not change the IsPostBack status for the page.

    However submitting the form(posting the form) will set the IsPostBack property to true and about page_load it will be called for both of the cases

提交回复
热议问题