unselected. This fixes bug #51516.
svn path=/trunk/mcs/; revision=20651
+2003-11-30 Jackson Harper <jackson@ximian.com>
+
+ * CheckBoxList.cs: A checkbox will have null post data if it is
+ unselected. This fixes bug #51516.
+
2003-11-29 Jackson Harper <jackson@ximian.com>
* DataGrid.cs: Display paging controls even when there is no
2003-11-29 Jackson Harper <jackson@ximian.com>
* DataGrid.cs: Display paging controls even when there is no
if(index >= 0 && index < Items.Count)
{
string v = postCollection [postDataKey];
if(index >= 0 && index < Items.Count)
{
string v = postCollection [postDataKey];
- if (v == null)
- return false;
-
- bool exists = (v.Trim () != "");
+ bool exists = (v != null);
if(Items[index].Selected != exists)\r
{\r
Items[index].Selected = exists;\r
if(Items[index].Selected != exists)\r
{\r
Items[index].Selected = exists;\r