Message Box with OK in C# using ASP.Net

This blog defines message box with OK in C# using ASP.Net.

protected void btn_tomail_Click(object sender, EventArgs e)

{
   
ClientScript.RegisterStartupScript(Page.GetType(), "alert",

    "alert('Password Sent Your EmailID !!');

    window.location='Login1.aspx';", true);

}