Author: igorz
Date: 2008-02-12 03:56:26 -0500 (Tue, 12 Feb 2008)
New Revision: 95481
Modified:
trunk/mcs/class/System.Web/System.Web.UI/Page.cs
Log:
make Exception message more informative
Modified: trunk/mcs/class/System.Web/System.Web.UI/Page.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Page.cs 2008-02-12 08:41:48 UTC
(rev 95480)
+++ trunk/mcs/class/System.Web/System.Web.UI/Page.cs 2008-02-12 08:56:26 UTC
(rev 95481)
@@ -399,7 +399,7 @@
public bool IsValid {
get {
if (!is_validated)
- throw new HttpException (Locale.GetText ("Page
hasn't been validated."));
+ throw new HttpException (Locale.GetText
("Page.IsValid cannot be called before validation has taken place. It should be
queried in the event handler for a control that has CausesValidation=True and
initiated the postback, or after a call to Page.Validate."));
#if NET_2_0
foreach (IValidator val in Validators)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches