Where do you call your alert call? Is it client- or serverside?

I had some similar problem in the past, and that was because I did the next on server side
Code:
Response.Write("alert('Hello');");