Hi,
You need to register your script or use the the following,
private void ShowMessage(string Message, string Title)
{
ScriptManager.RegisterStartupScript(Page, this.GetType(), "alert", string.Format("alert('{1}', '{0}');", Message, Title), true);
}