[Mono-devel-list] [PATCH] asp.net's ListControl.cs fixes.
Yaacov Akiba Slama
ya at slamail.org
Wed Aug 13 13:07:40 EDT 2003
Hello,
Below is a patch fixing some bugs in
mcs/class/System.Web/System.Web.UI.WebControls/ListControl.cs
[ The work was done by Yaron Shkop <yaronsh at mainsoft.com> ]
1) "DataSource" property (set). A null value is legal.
2) Add a "CachedSelectedValue" private variable and its use in property
"SelectedValue" and in "the OnDataBinding" method. Its purpose is to
give the control a selected value before binding it to data (the same
mechanism is already here for "CachedSelectedindex").
3) Fix in "OnDataBinding" the case when exactly one of DataTextField and
DataValueField has a lenght > 0.
The patch seems to work here and IMHO can be applied to your tree.
Thanks,
Yaacov Akiba Slama
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ListControl.cs.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030813/a3721263/attachment.pl
More information about the Mono-devel-list
mailing list