Try this:
protected void Button1_Click(object sender, EventArgs e)
{
Page.RegisterStartupScript("starScript", "<script language=JavaScript>Message('Hello ');</script>");
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "test", "<script>alert('hi');</script>");
}
NOTE: Use google before posting your question here.