1) Use the Global Application_Error for Global.asax to monitor hidden errors.
2) Use the Web Developer Utility
if (!this.Page.IsClientScriptBlockRegistered("hideMessage"))
{ this.Page.RegisterStartupScript("hideMessage",
"<script>document.getElementById('" + pnlMessage.ClientID + "').style.display =
'none'</script>;"); }