It looks like the click event is working inside the update panel but you are trying to open some alert so it is not working.
You have to do something else
string showHelloWorld = "alert('Hello World');";
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "msg", showHelloWorld, true);
and write this in the click event