in my case it is like
Write script language ='javascript' in Single Cote(' ') not into double cote..then it work fine..
and another way for alert msg like
ScriptManager.RegisterStartupScript(this, this.GetType(), "alertmessage", "javascript:alert('Record Has Been Deleted.')", true);
Thank you