title: Javascript Alert before redirecting in ASP.NET
body: <p>I am using following code to display message while updating in update panel</p>
  
  <pre><code>string jv = "alert('Time OutAlert');";
  ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "msg", jv, true);
  </code></pre>
  
  <p>It works fine.</p>
  
  <p>But when I use Redirect after it it loads the page without displaying the message. I want user to see the message and after clicking on "ok" it should redirect.</p>
  
  <pre><code>string jv = "alert('Time OutAlert');";
  ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "msg", jv, true);
  Response.Redirect("~/Nextpage.aspx");
  </code></pre>