I am using SmtpClient‘s Send method in ASP.NET to send email from a contact-us page. While the message is being sent, I want to show a loading image. More specifically, when a user presses the send button to send the email, the loading image will appear, and once the message is sent, the loading image will disappear. I know I can use onclick method to display the loading image. But how can I remove this image once the message is sent?
I am using SmtpClient ‘s Send method in ASP.NET to send email from a
Share
Encapsulate your button in an update panel.
You can use the updateprogress template to show a loading sign then.
If you are new to update panels take a look at this introduction to update panels