I have this .NET web app that draws a table in Page_Load.
Then after that it handles the events, which should change the table drawn in Page_Load. This is very inefficient.
Is there a way to execute the code (which draws the table) after it finishes handling all events? (instead of doing it in Page_Load)
Thank you in advance.
You need to handle an event that occurs after the control events, but before the page is rendered, such as LoadComplete or PreRender.
Check out the ASP.NET Page Life Cycle Overview for more info.