How do I know if Im doing it client or server side? This is what my alert call looks like:

Code:
        protected void MessageBox(string message)
        {
            if (!string.IsNullOrEmpty(message))
            {
                Response.Write("<script type=\"text/javascript\" language=\"javascript\">");
                Response.Write("alert('" + message + "');");
                Response.Write("</script>");
            }
        }
And this is how I call it:

Code:
 protected void GetActiveTrainees()
        {
            try
            {
                // Get an array of the active trainees
                traineesActive = SData.mWebService.getAllTraineeActive();

                if (traineesActive.Length > 0)
                {
                    CreateTblTrainee();
                }
                else
                {
                    MessageBox("Es würde kein Auszubildender in der Datenbank gefunden.");
                }
            }
            catch (Exception e)
            {
                 SData.tCurrentError = e.GetType();
                 Response.Redirect("Error.aspx", true);
            }
        }