title: showing ClientScript Alerts before Redirecting to another page in ASP.NET c#?
body: <p>I gotta address a problem here...</p>
  
  <p>I'm developing a system where I am constantly showing Messages to the user, For instance...
  I'm adding a new client, I input all the data and press Save, ON C# what I do is do all the process of saving, then I use...</p>
  
  <pre><code>ClientScript.RegisterStartupScript(this.GetType(), "Mensaje", "alert('Client Saved Successfully');", true);
  </code></pre>
  
  <p>And that's it... Eventually the message is displayed since I'm staying in the same site (because if I want to add another client, I must stay in the sme site, not send me back to my MAIN SCREEN) or at least I'm not telling the system to do a redirection...</p>
  
  <p>However here's another example...</p>
  
  <p>If I'm going to edit a client, I'm redirected to the edit screen, I input all my changes and click SAVe, on C# I do all the process to save changes, then I use a clientscript as the one above, and then ...</p>
  
  <pre><code>this.Response.Redirect("~/Main.aspx");
  </code></pre>
  
  <p>However, I noticed that if I use a Response.Redirect I will not be in the same page anymore, the alert won't be displayed to the user....</p>
  
  <p>This is a constant issue that I'm running into, and I would like to know what could be the solution to that...</p>
  
  <p>Thank you and I hope you can help me</p>