Please check below
ClientScript.RegisterStartupScript(GetType(), "Message", "<SCRIPT LANGUAGE='javascript'>alert('Hi.....);</script>");
if you used any update panels then check below
ScriptManager.RegisterStartupScript(UpdatePanel1, typeof(string), "alertscipt", "alert('Hi....')", true);