title: refresh page after 3 seconds using c#
body: <p>I want my code to refresh the page once its shown the success label for 3 seconds.</p>
  
  <p>How can i do this in c# code?</p>
  
  <p>i have this following:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Net.Mail;
  using System.IO;
  
  
  
  
  public partial class CAPTCHA_Contact : System.Web.UI.Page
  {
  
      protected void Page_Load(object sender, EventArgs e)
      {
  
          //ImageVerification
  
          if (!IsPostBack)
          {
  
              SetVerificationText();
  
          }
          imCaptcha.ImageUrl = "captcha.ashx?d=" + DateTime.Now.Ticks;
  
  
  
      }
  
      public void SetVerificationText()
      {
  
          Random ran = new Random();
  
          int no = ran.Next();
  
          Session["Captcha"] = no.ToString();
  
      }
  
      protected void CAPTCHAValidate(object source, ServerValidateEventArgs args)
      {
  
          if (Session["Captcha"] != null)
          {
  
              if (txtVerify.Text != Session["Captcha"].ToString())
              {
  
                  SetVerificationText();
  
                  args.IsValid = false;
  
                  return;
  
              }
  
          }
  
          else
          {
  
              SetVerificationText();
  
              args.IsValid = false;
  
              return;
  
          }
  
  
  
      }
  
      protected void btnSave_Click(object sender, EventArgs e)
      {
  
          if (!Page.IsValid)
          {
  
              return;
  
          }
  
  
  
          SetVerificationText();
  
          //Save the content
          MailMessage mail = new MailMessage();
          mail.From = new MailAddress(EmailTB.Text);
          mail.To.Add("name@company.co.uk");
          mail.Bcc.Add("test@test.co.uk");
          mail.Subject = "Web Quote";
          mail.IsBodyHtml = true;
          mail.Body = "First Name: " + FNameTB.Text + "&lt;br /&gt;";
          mail.Body += "Email: " + EmailTB.Text + "&lt;br /&gt;";
          mail.Body += "Telephone: " + TelephoneTB.Text + "&lt;br /&gt;";
          mail.Body += "Query: " + QueryDD.Text + "&lt;br /&gt;";
          mail.Body += "Comments: " + CommentsTB.Text + "&lt;br /&gt;";
  
  
  
          SmtpClient smtp = new SmtpClient();
          smtp.Host = "localhost";
          smtp.Send(mail);
  
          sucessPH.Visible = true;
      }
  
        protected void Reset(object s, EventArgs e)
      {
          FNameTB.Text = "";
          QueryDD.Text = "";
          EmailTB.Text = "";
          TelephoneTB.Text = "";
          CommentsTB.Text = "";
          txtVerify.Text = "";
  
  
      }
  
      }
  </code></pre>
  
  <p>So after <code>sucessPH.Visible = true;</code> i need to count 3 seconds and then refresh the page. This will then clear the form data and the user will also get 3 seconds to see the message to say the message was successfull.</p>
  
  <p>Any ideas?</p>