Browse Source

typo fix

svn path=/trunk/mcs/; revision=64432
Igor Zelmanovich 19 years ago
parent
commit
bbfe386a4f

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,7 @@
+2006-08-27 Igor Zelmanovich <[email protected]>
+
+	* MenuItem.cs: typo fix
+
 2006-08-27 Vladimir Krasnov <[email protected]>
 
 	* CreateUserWizardStep.cs: fixed validators message display

+ 7 - 7
mcs/class/System.Web/System.Web.UI.WebControls/MenuItem.cs

@@ -148,7 +148,7 @@ namespace System.Web.UI.WebControls
 			get {
 				return ViewState ["DataPath"] == null ? String.Empty : (String) ViewState ["DataPath"];
 			}
-			set {
+			private set {
 				ViewState ["DataPath"] = value;
 			}
 		}
@@ -481,17 +481,17 @@ namespace System.Web.UI.WebControls
 				else if (bin.SeparatorImageUrl.Length > 0)
 					SeparatorImageUrl = bin.SeparatorImageUrl;
 
-				// Bind Target property
-
-				if (bin.SeparatorImageUrlField.Length > 0) {
+				// Bind Target property
+
+				if (bin.TargetField.Length > 0) {
 					Target = Convert.ToString (GetBoundPropertyValue (bin.TargetField));
 					if (Target.Length == 0)
 						Target = bin.Target;
 				}
 				else if (bin.Target.Length > 0)
-					Target = bin.Target;
-
-				// Bind Target property
+					Target = bin.Target;
+
+				// Bind ToolTip property
 
 				if (bin.ToolTipField.Length > 0) {
 					ToolTip = Convert.ToString (GetBoundPropertyValue (bin.ToolTipField));