Do I need to raise an event?
Posted on 2006-04-25
I've written an asp.net page that allows for a spreadsheet to be selected (browsed for) and imported into our SQL database. That works fine - however as it takes about 10 minutes to process and upload all the data I was hoping to display a graphic to the user to show that the data is loading.
When the import button is clicked, obviously a postback is raised, I display my graphic (or so I thought) using an image control with runat=server and the import goes ahead... however, the graphic never gets displayed - it goes striaght into the import code. I presume the grapic hasn't been rendered on the page?
So my question is, how can I get the graphic to render before it hits the import code? Do I need to raise an event or something? When the import finished I then hide the image.