title: Time delay before redirect
body: <p>I create a register page for my web application. The application require that after user successfully register a new account, the page will show a message "Register successfully", then wait for 5 seconds before switch to Login page. I used <code>Thread.Sleep(5000)</code>. It wait for 5 seconds but it does not display the message. Can anyone help me?</p>
  
  <pre><code>void AccountServiceRegisterCompleted(object sender, RegisterCompletedEventArgs e)
      {
          if (e.Result)
          {
              lblMessage.Text = "Register successfully";
  
              Thread.Sleep(5000); 
              this.SwitchPage(new Login());
          }
          else
          {
              ...
          }
      }
  </code></pre>