Selaa lähdekoodia

2005-09-11 Chris Toshok <[email protected]>

	* HtmlInputFile.cs (set_Value): add a message to the
	NotSupportedException.

	* HtmlInputControl.cs (RenderAttributes): add Page != null to the
	checks before we register our control with the
	__enabledControlArray JS array.


svn path=/trunk/mcs/; revision=49915
Chris Toshok 20 vuotta sitten
vanhempi
sitoutus
df181d2245

+ 9 - 0
mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog

@@ -1,3 +1,12 @@
+2005-09-11  Chris Toshok  <[email protected]>
+
+	* HtmlInputFile.cs (set_Value): add a message to the
+	NotSupportedException.
+
+	* HtmlInputControl.cs (RenderAttributes): add Page != null to the
+	checks before we register our control with the
+	__enabledControlArray JS array.
+
 2005-09-09  Chris Toshok  <[email protected]>
 
 	* HtmlInputButton.cs (CausesValidation): this is stored in

+ 1 - 1
mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputControl.cs

@@ -110,7 +110,7 @@ namespace System.Web.UI.HtmlControls {
 			writer.Write (" /");
 
 #if NET_2_0
-			if (Page.Form != null && Page.Form.SubmitDisabledControls && Page.Form.DetermineRenderUplevel() && !Disabled)
+			if (Page != null && Page.Form != null && Page.Form.SubmitDisabledControls && Page.Form.DetermineRenderUplevel() && !Disabled)
 				Page.ClientScript.RegisterArrayDeclaration ("__enabledControlArray", String.Format ("'{0}'", ClientID));
 #endif
 		}

+ 1 - 1
mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputFile.cs

@@ -143,7 +143,7 @@ namespace System.Web.UI.HtmlControls
 				return (value);
 			}
 			set {
-				throw new NotSupportedException ();
+				throw new NotSupportedException ("The value property on HtmlInputFile is not settable.");
 			}
 		}