I am simply trying to show message first then redirect the user to another page. The issue i am having is that it is not showing the message first but it is redirecting the page right a way. Here is my code
if (some condition == true)
{
string message = string.Empty;
message = "Success. Please check your email. Thanks.";
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('" + message + "');", true);
Response.Redirect("Login.aspx");
}