Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI/Controls
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16944
Modified Files:
DataBindingPanel.cs
Log Message:
fixed SPRNET-887
Index: DataBindingPanel.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI/Controls/DataBindingPanel.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** DataBindingPanel.cs 2 Feb 2008 16:31:08 -0000 1.11
--- DataBindingPanel.cs 6 Mar 2008 19:03:24 -0000 1.12
***************
*** 288,294 ****
/// Probe for bindingType of know controls
/// </summary>
! /// <param name="wc"></param>
! /// <returns></returns>
! private string AutoProbeBindingType(Control wc)
{
if (wc is ListBox && ((ListBox) wc).SelectionMode == ListSelectionMode.Multiple)
--- 288,294 ----
/// Probe for bindingType of know controls
/// </summary>
! /// <param name="wc">the control, who's bindingType is to be determined</param>
! /// <returns>null, if standard binding is to be used or the fully qualified typename of the binding implementation</returns>
! protected virtual string AutoProbeBindingType(Control wc)
{
if (wc is ListBox && ((ListBox) wc).SelectionMode == ListSelectionMode.Multiple)
***************
*** 302,306 ****
/// Probes for a few know controls and their properties.
/// </summary>
! private string AutoProbeSourceProperty(Control wc)
{
if (wc is ListBox && ((ListBox) wc).SelectionMode == ListSelectionMode.Multiple)
--- 302,309 ----
/// Probes for a few know controls and their properties.
/// </summary>
! /// <returns>
! /// The 'BindingSource' expression to be used for binding this control.
! /// </returns>
! protected virtual string AutoProbeSourceProperty(Control wc)
{
if (wc is ListBox && ((ListBox) wc).SelectionMode == ListSelectionMode.Multiple)
***************
*** 324,327 ****
--- 327,334 ----
return "Text";
}
+ else if (wc is HiddenField)
+ {
+ return "Value";
+ }
else if (wc is RadioButtonGroup)
{
|