Author: igorz
Date: 2006-12-17 08:56:44 -0500 (Sun, 17 Dec 2006)
New Revision: 69600
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
Log:
2006-12-17 Igor Zelmanovich <[EMAIL PROTECTED]>
* FormView.cs: fixed: FillRowDataKey
* DetailsView.cs: fixed: FillRowDataKey
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-12-17 12:49:38 UTC (rev 69599)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-12-17 13:56:44 UTC (rev 69600)
@@ -1,5 +1,10 @@
-2006-12-11 Igor Zelmanovich <[EMAIL PROTECTED]>
+2006-12-17 Igor Zelmanovich <[EMAIL PROTECTED]>
+ * FormView.cs: fixed: FillRowDataKey
+ * DetailsView.cs: fixed: FillRowDataKey
+
+2006-12-17 Igor Zelmanovich <[EMAIL PROTECTED]>
+
* TreeView.cs: fixed: ResolveClientUrl used with ImageUrl and
NavigateUrl
2006-12-14 Vladimir Krasnov <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
2006-12-17 12:49:38 UTC (rev 69599)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
2006-12-17 13:56:44 UTC (rev 69600)
@@ -1208,9 +1208,9 @@
PropertyDescriptorCollection props =
TypeDescriptor.GetProperties (dataItem);
cachedKeyProperties = new PropertyDescriptor
[DataKeyNames.Length];
for (int n=0; n<DataKeyNames.Length; n++) {
- PropertyDescriptor p = props
[DataKeyNames[n]];
+ PropertyDescriptor p = props.Find
(DataKeyNames [n], true);
if (p == null)
- new InvalidOperationException
("Property '" + DataKeyNames[n] + "' not found in object of type " +
dataItem.GetType());
+ throw new
InvalidOperationException ("Property '" + DataKeyNames[n] + "' not found in
object of type " + dataItem.GetType());
cachedKeyProperties [n] = p;
}
}
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
2006-12-17 12:49:38 UTC (rev 69599)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
2006-12-17 13:56:44 UTC (rev 69600)
@@ -1010,9 +1010,9 @@
PropertyDescriptorCollection props =
TypeDescriptor.GetProperties (dataItem);
cachedKeyProperties = new PropertyDescriptor
[DataKeyNames.Length];
for (int n=0; n<DataKeyNames.Length; n++) {
- PropertyDescriptor p = props
[DataKeyNames[n]];
+ PropertyDescriptor p = props.Find
(DataKeyNames [n], true);
if (p == null)
- new InvalidOperationException
("Property '" + DataKeyNames[n] + "' not found in object of type " +
dataItem.GetType());
+ throw new
InvalidOperationException ("Property '" + DataKeyNames[n] + "' not found in
object of type " + dataItem.GetType());
cachedKeyProperties [n] = p;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches