Suppose you want to use something like Response.Write("<script>alert('Test Message");</script>) within UpdatePanel.Then you will end recieving HttpModule error. To overcome this situation use ScriptManager object.
ScriptManager.RegisterStartupScript(this,this.GetType(),"key","alert('Test Message');",true);