I wrote a post before about giving user some feedback when a long process occurs. It is very simple if you use AJAX as the post shows. But what if your boss told you that you can’t use AJAX for whatever reason, like my boss told me?
The idea is this:
1. Add a HiddenField to the page with an initial value, say 0;
4. The purpose of CSS here is to create a transparent layer to cover the whole page (so user will not be able to click the button again until the process is finished), and on top of the layer a “Processing” message is displayed.
OK, here is the code:
Code behind code:
Here is what it looks like when you click “Process” button:
Here is a demo to show you how it works.
Hope you find it helpful.