Display error message for UpdatePanel in content page http://forums.asp.net/t/1771772.aspx/1?Display+error+message+for+UpdatePanel+in+content+page+Tue, 21 Feb 2012 02:16:22 -050017717724841792http://forums.asp.net/p/1771772/4841792.aspx/1?Display+error+message+for+UpdatePanel+in+content+page+Display error message for UpdatePanel in content page <p>I am using VS2010 framework 4.0.&nbsp;The web app&nbsp;has a master page and a content page. The content page has an UpdatePanel control. When updating the UpdatePanel, how to display error message incurred?</p> <p>Thanks!</p> 2012-02-20T19:44:22-05:004841829http://forums.asp.net/p/1771772/4841829.aspx/1?Re+Display+error+message+for+UpdatePanel+in+content+page+Re: Display error message for UpdatePanel in content page <p>You can use the End Request Handler to show the error message when the Update Fails..</p> 2012-02-20T20:10:30-05:004841960http://forums.asp.net/p/1771772/4841960.aspx/1?Re+Display+error+message+for+UpdatePanel+in+content+page+Re: Display error message for UpdatePanel in content page <p>simple answer is : you put a lable inside the update panel, and when you want to show some error message, you just set the text of the label, and don't forget clear its value during next postback. (in fact, the best choice is set a timeout at client side , for example, the message will disappear automatically after 9 seconds)</p> <p></p> <p>complex answer is : write a javascript function that show a layer( I mean div), the message will be shown inside the layer, user can click an &quot;OK&quot; or &quot;Close&quot; to close the pop up layer, you can call this method from server side when you want to display an error message.&nbsp;</p> 2012-02-21T00:22:50-05:004842042http://forums.asp.net/p/1771772/4842042.aspx/1?Re+Display+error+message+for+UpdatePanel+in+content+page+Re: Display error message for UpdatePanel in content page <p>Hi, Please refer this</p> <p><a href="http://msdn.microsoft.com/en-us/library/bb398934.aspx">http://msdn.microsoft.com/en-us/library/bb398934.aspx</a></p> <p><a href="http://aspdotnetcodebook.blogspot.in/2008/04/exception-handling-with-update-panel.html">http://aspdotnetcodebook.blogspot.in/2008/04/exception-handling-with-update-panel.html</a></p> <p><a href="http://geekswithblogs.net/mnf/archive/2008/02/09/how-touse-different-client-ajax-updatepanel-error-handling-for-different.aspx">http://geekswithblogs.net/mnf/archive/2008/02/09/how-touse-different-client-ajax-updatepanel-error-handling-for-different.aspx</a></p> 2012-02-21T02:16:22-05:00