Another option would be write this
Page.RegisterStartupScript("alert_window", "<scriptlanguage=\"javascript\">alert('contact exists');</script>");