hi,
Try this to call your javascript from code behind:
protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "Call_my_function", "showError('hello this is a message from server side!')", true);
}