My understanding of the page event order is as follows:
Page: Download
Management: DataBind (for GridView or something else)
Management: download
Management: press (for the button)
Page: PreRender
Management: PreRender
(There are many others - but these are the ones that interest me)
It is important to note that the button click event appears after the gridview binding event. If the button causes a data change, the GridView displays the old data. I could reinstall the control in the PreRender event, but that seems absolutely ugly.
This should be a very common template (a button that updates data). How to do this together so that the GridView binds to data after clicking the Button?
Tallguy
source share