String scriptStr
= "<script language='javascript'
type='text/javascript'>";
scriptStr += "alert('Hi');";
scriptStr += "window.location = '";
scriptStr += "google.com";
scriptStr += "'";
scriptStr += "</script>";
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "AlertMessage",
scriptStr);