How to customize the style of message in this message box? For instance, when I use \n, \r, <br> to try to seperat the message into mutiple line, it doesn't work. How to implelent it?
If throw out an exception not inside UpdatePanel, the error message will display in the page directly.
So anyway to decide the way of dispalying errormessage?
You need to specify an ErrorTemplate in your ScriptManager. There is also a server event handler that you can hook into.
See documentation here:
http://atlas.asp.net/docs/Server/Microsoft.Web.UI/ScriptManager/P_ErrorTemplate.aspx
HTH,
Perry
No comments:
Post a Comment