Based on the code you provided, I didn't find the button you mentioned so that I cannot reproduce your issue. Does the form control behind
you mentioned in your question refer to the UpdatePanel control, or something else? If possible, could you provide more details? For example, describe your requirement more clearly, or more sample code so we can reproduce your problem.
And based on your description, I created a simple demo to implement a similar function based on the code in the official document and made some modifications, just refer to these code below:
In button click event, I put the thread to sleep for 3 seconds to simulate loading, and result like this:
As you can see, I implemented it mostly via CSS: position:absolute
. And the control will automatically hide the progress bar after loading, so you don't need to manually show and hide it. But if I misunderstood anything, just let me know.
Best regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.