Experienced with ASP.NET but new to the UpdatePanel, I am working on a reporting page that currently runs a SQL query taking about 10 seconds. My goal is to have the page initially display placeholder text (Loading...) and then use the UpdatePanel to execute the time-consuming process and render the report once it's ready.
I am considering using RegisterStartupScript() to initiate this process and using GetPostBackEventReference() to trigger the update in the UpdatePanel. However, I encountered some issues:
1) Can I use GetPostBackEventReference with the UpdatePanel or should I find another way to trigger it? Should I utilize this method on a button within the UpdatePanel?
2) Which event is triggered when the postback reference is in the UpdatePanel? It is not clear where my databinding code should be called! Maybe I need to implement a button inside the panel for this purpose?