Bladeren bron

make Exception message more informative

svn path=/trunk/mcs/; revision=95481
Igor Zelmanovich 18 jaren geleden
bovenliggende
commit
4e966bdfcd
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      mcs/class/System.Web/System.Web.UI/Page.cs

+ 1 - 1
mcs/class/System.Web/System.Web.UI/Page.cs

@@ -399,7 +399,7 @@ public partial class Page : TemplateControl, IHttpHandler
 	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)