In this article, I will explain how to display JavaScript alert message box and the redirect to another page or website when "OK" Button is clicked.
ScriptManager.RegisterStartupScript(this, GetType(), "alertMessage", "alert('User details
saved sucessfully');window.location = 'anotherpage.aspx'; ", true);