BaseDataList.cs: added ConnectToDataSource method that called from OnLoad, fixed...
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / ChangeLog
index a8a328b6ab5c1fef02bf61ed16ae264c80f3dadd..527b8990f01eb47293515568afa439934910a3a1 100644 (file)
@@ -1,3 +1,550 @@
+2006-06-13  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * BaseDataList.cs: added ConnectToDataSource method that called from
+       OnLoad, fixed GetData method
+
+2006-06-13  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * Repeater.cs: fixed ConnectToDataSource method, subscribed to
+       DataSourceViewChanged, looks for a datasource in its parent control
+       fixed GetData method, should not get data if datasource is null
+
+2006-06-13  Konstantin Triger  <kostat@mainsoft.com>
+
+       * ObjectDataSourceView.cs: raise OnDataSourceViewChanged events when data changes.
+
+2006-06-11  Konstantin Triger  <kostat@mainsoft.com>
+
+       * GridView.cs: set the row index from GridRowView if CommandArgument does not contain this information.
+
+2006-06-11  Konstantin Triger  <kostat@mainsoft.com>
+
+       * ObjectDataSourceViewTest.cs: return documented default for OldValuesParameterFormatString.
+
+2006-05-24  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataList.cs: Fixed LoadViewState method
+
+2006-05-04  Lluis Sanchez  <lluis@novell.com>
+
+       * BoundField.cs: Added missing throw kyword. Patch by Marek Habersack.
+
+2006-04-25  Konstantin Triger  <kostat@mainsoft.com>
+
+       * BaseDataBoundControl.cs: ensure the control is bound if ViewState is disabled.
+
+2006-04-25 Konstantin Triger <kostat@mainsoft.com>
+
+       * FormView.cs: fix FormView.PageCount after data binding.
+
+2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CheckBox.cs: certain attributes have to be rendered in the input tag,
+       not the <span>. Fixes bug #71251.
+
+2006-04-20  Konstantin Triger  <kostat@mainsoft.com>
+
+       * BaseDataBoundControl.cs: RequiresDataBinding rebinds if the control prerendered.
+       * FormView.cs: 
+               enable binding.
+               ensure rebinding when FormView.PageIndex is called.
+               and bind to the correct PageIndex.
+
+2006-04-20  Konstantin Triger  <kostat@mainsoft.com>
+
+       * MenuItem.cs: when binding to IHierarchyData, check whether 
+               it implements INavigateUIData and retrieve NavigateUrl.
+       * CompositeDataBoundControl.cs: ensures data is bound before creating child controls.
+       * Menu.cs:
+               Enable DataBinding by not throwing NotImplementedException in OnDataBound event. 
+               Provide basic CreateChildControls implementation by ensuring the control is bound. 
+               Ensure the child controls are created when the postback event is raised. 
+               Provide default implementation for SkipLinkText to let the default functionality to work.
+
+2006-04-11  Lluis Sanchez  <lluis@novell.com>
+
+       * TreeNodeBinding.cs: Added HasPropertyValue property
+         to check if some properties have a value in the
+         state bag.
+       * TreeNode.cs: Lazily get the dataPath. Instead of getting
+         bound properties when they are requested, get all of
+         them when the node is bound and store their values in
+         the state bag. In this way it won't be necessary to
+         query every time the datasource to get the values.
+       * XmlHierarchyData.cs: Implemented IHierarchyData.Path.
+       * TreeView.cs: Call base in OnInit(). Bind nodes after
+         adding them to the list, to properly keep track of
+         changes. Don't databind in postbacks.
+
+2006-04-11  Chris Toshok  <toshok@ximian.com>
+
+       * Login.cs (OnLoggingIn): use Events[loggingInEvent].
+
+2006-04-06     Konstantin Triger <kostat@mainsoft.com>
+
+       * BaseDataList.cs: Fix searching control by DataSourceID.
+       * DataList.cs: Enable binding using DataSourceID for NET_2_0.
+
+       
+2006-04-06     Konstantin Triger <kostat@mainsoft.com>
+
+       * Login.cs: Added LayoutTemplate property support.
+       * LoginView.cs: Added LoggedInTemplate, AnonymousTemplate support.
+               DataBind: correctly bind child controls.
+               Implemented OnViewChanged, OnViewChanging, Render, Save/LoadControlState.
+
+2006-03-29  Robert Jordan  <robertj@gmx.net>
+       * DataGrid.cs: if custom paging is enabled the persisted item count
+       must be the count of the rendered items, otherwise paging from the
+       last to a previous page won't work correctly. Fixes bug #77556.
+2006-03-29  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * RepeatInfo.cs: fixed RenderBeginTag to set enabled value of table
+       when rendering disabled list control
+
+2006-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Panel.cs: render the image url inside 'url()'. Fixes bug #77811.
+
+2006-03-28  Alexandre Miguel Pedro Gomes  <alexmipego@gmail.com>
+
+       * FontInfo.cs: Implemented ShouldSerializeNames
+
+2006-03-23  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataGrid.cs, DataList.cs, RepeatInfo.cs: added accessablity features
+
+2006-03-23  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataGrid.cs: fixed CreateControlHierarchy, added CurrentPageIndex
+       validation
+       in PrepareControlHierarchy fixed style applying to AlternatingItem
+
+2006-03-22  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataList.cs: fixed RepeatColumns property, added value validation
+       in PrepareControlHierarchy method fixed style applying for
+       AlternatingItem, EditItem and Separator item
+       fixed RenderContents method, if no items exist, no nned to
+       render emty table strructure.
+
+2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CompareValidator.cs: when searching for the control to compare, use
+       NamingContainer instead of Page. Fixes bug #77793.
+
+2006-03-15  Chris Toshok  <toshok@ximian.com>
+
+       * SiteMapPath.cs (InitializeItem): in the Current and Root node
+       cases, apply the NodeTemplate if it exists and there isn't a
+       CurrentNodeTemplate or RootNodeTemplate, respectively.
+
+2006-03-15  Chris Toshok  <toshok@ximian.com>
+
+       * SiteMapDataSourceView.cs (OnDataSourceViewChanged): override.
+
+       * SiteMapDataSource.cs (StartingNodeOffset): new property.
+       (GetStartNode): add code to handle StartNodeOffset < 0.
+
+       * CompositeControl.cs
+       (ICompositeControlDesignerAccessor.RecreateChildControls): just
+       call the non-iface method.
+
+       * DataBoundControl.cs (GetDataSource): this is likely wrong, but
+       traverse up the naming container tree looking for our datasource
+       if we're bound using a DataSourceID.  This fixes things in the
+       sitemap1 test, which uses a mixture of templates and
+       ContentPlaceholders with the sitemapdatasource and sitemappath at
+       different levels in the naming container tree (let along the
+       itemnode template.)
+
+       * SiteMapPath.cs (DataBind): implement this by chaining up to
+       base.DataBind, then by looping over our children, emitting
+       OnItemDataBound for each SiteMapNodeItem.
+       (AddAttributesToRender): remove.
+       (CreateChildControls): call DataBind as the final step here..  I
+       have, of course, no idea if this is right.
+       (CreateControlHierarchy): don't databind our children here, as
+       they need to be in the Controls collection before we do.
+       (RenderContents): render our accessibility/screenreader stuff
+       here, if SkipLinkText != "".
+
+2006-03-15  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataGridPagerStyle.cs: fixed PrevPageText property
+
+2006-03-13  Chris Toshok  <toshok@ximian.com>
+
+       * BaseCompareValidator.cs (Convert): make the
+       ValidationDataType.String case a bit more compact.
+
+2006-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ListBox.cs:
+       (RenderContents): don't call base.RenderContents. Fixes bug #77740.
+       Patch by Hubert Fongarnand.
+
+2006-03-13  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * FontInfo.cs: fixed CopyFrom, this method should not reset the 
+       received fontinfo if it is the same instance
+       fixed ToString, corrected output where only font size specified
+
+2006-03-13  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * Style.cs: fixed WriteStyleAttributes to set border style to solid,
+       if it not set but the border has width
+       fixes in CopyFrom, MergeWith correct unit compare when it has zero 
+       value
+
+2006-03-12  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataGrid.cs: in AddColumnsFromSource method fixed columns from
+       properties of custom class
+       fixed InitializeNumericPager, pager numbers should be a Label control
+       fixed CreateControlHierarchy, corrected dataset index of items if
+       paging is enabled
+
+2006-03-09  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataList.cs: fixed DoItemInLoop method that fixes itemIndex
+       of separator item.
+       fixed CreateControlStyle to set correct cellspacing of table style
+       fixed InitializeItem to correct applying template to selected and
+       edit items.
+
+2006-03-08  Chris Toshok  <toshok@ximian.com>
+
+       * SiteMapNodeType.cs: nuke.
+
+       * BorderStyle.cs, ButtonColumnType.cs, CalendarSelectionMode.cs,
+       DayNameFormat.cs, ListItemType.cs, ListSelectionMode.cs,
+       NextPrevFormat.cs, PagerMode.cs, PagerPosition.cs,
+       RepeatDirection.cs, RepeatLayout.cs, TableRowSection.cs,
+       TextAlign.cs, TextBoxMode.cs, TitleFormat.cs,
+       ValidationCompareOperator.cs, ValidationDataType.cs,
+       ValidationSummaryDisplayMode.cs, ValidatorDisplay.cs: remove
+       [Serializable] in 2.0.
+
+       * DayNameFormat.cs: add "Shortest".
+
+2006-03-08  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * LinkButton.cs: fixed AddAttributesToRender, removed not needed 
+       language attribute
+
+2006-03-08  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * TextBox.cs: fixed missing value validations, fixed rendering
+       of empty value attribute
+
+2006-03-07  Chris Toshok  <toshok@ximian.com>
+
+       * WebControl.cs (EnableTheming): leave the MonoTODO, but implement
+       by chaining up to base.EnableTheming.
+
+2006-03-07  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataList.cs: fixed CreateControlHierarchy, fixes 77693
+
+2006-03-06  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * RadioButton.cs: added ValueAttribute property to store the button
+       value when in list
+       * RadioButtonList.cs: fixed tab index when rendering.
+
+2006-03-02  Chris Toshok  <toshok@ximian.com>
+
+       * WebControl.cs (SkinID): implement setter/getter, and have them
+       just chain up to base.SkinID.
+
+2006-02-27  Chris Toshok  <toshok@ximian.com>
+
+       * SqlDataSource.cs: track change to DataSourceControl's protected
+       methods.
+
+       * AccessDataSource.cs: same.
+
+2006-02-27  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * ListControl.cs: fixed SelectedIndex property, fixed selection
+       reset on incorrect value
+
+2006-02-27  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * TableStyle.cs: fixed AddAttributesToRender function, style
+       BorderCollapse:Collapse was added if table's CellSpacing is zero
+
+2006-02-23  Chris Toshok  <toshok@ximian.com>
+
+       * CheckBox.cs, ContentControlBuilderInternal.cs, Content.cs,
+       ContentPlaceHolderBuilder.cs, ContentPlaceHolder.cs,
+       DataControlFieldHeaderCell.cs, DataGridColumn.cs,
+       HierarchicalDataBoundControl.cs, HyperLinkField.cs,
+       ImageButton.cs, ImageField.cs, Literal.cs,
+       ObjectDataSourceView.cs, TextBox.cs: more corcompare work.
+
+       * BaseCompareValidator.cs, BaseValidator.cs, Button.cs,
+       DataControlField.cs, DetailsView.cs, FormView.cs, GridView.cs,
+       HotSpot.cs, LinkButton.cs, Login.cs, SiteMapDataSource.cs,
+       SqlDataSourceCommandType.cs, TableSectionStyle.cs,
+       TemplateField.cs, TreeNodeCollection.cs, TreeNode.cs, TreeView.cs,
+       ValidationSummary.cs, WizardStepBase.cs: fix tons of corcompare
+       errors.  most were caused by a property/method being virtual when
+       it shouldn't be, or vice versa.
+
+2006-02-22  Chris Toshok  <toshok@ximian.com>
+
+       * ObjectDataSource.cs: corcompare work.
+
+2006-02-22  Chris Toshok  <toshok@ximian.com>
+
+       * ParameterCollection.cs: add an EditorAttribute to the class.
+
+       * Parameter.cs: cleanup, fix the Value property, and implement the
+       Size property.
+
+       * SqlDataSourceView.cs: clean things up a bit, and add handling
+       for parameters.
+
+2006-02-22  Chris Toshok  <toshok@ximian.com>
+
+       * SqlDataSourceFilteringEventArgs.cs: formatting.
+
+       * SqlDataSourceSelectingEventArgs.cs: remove ExecutingSelectCount,
+       both the property and ctor arg.
+
+       * AccessDataSourceView.cs (ExecuteSelect): use SelectingEventArgs,
+       not CommandEventArgs.  Also, cast the return value of
+       oleCommand.ExecuteReader.
+
+       * AccessDataSource.cs (.ctor): fix the ctors and remove FIXME
+       comments.
+       (GetDbProviderFactory): implement naively, and leave a MonoTODO.
+       (GetPhysicalDataFilePath): implement, again naively.  this is
+       where the NRE is generated when we access ConnectionString in a
+       testcase on .net.
+       (ConnectionString): dynamically generate this based on our
+       DataFile attribute.
+       (DataFile): clear the ConnectionString in the setter so we'll
+       regenerate it.
+       (ProviderName): use base.ProviderName in the getter, not
+       this.ProviderName, so we don't recurse infinitely.
+       
+       * SqlDataSourceView.cs: start reworking this class.
+
+       * SqlDataSource.cs (GetDbProviderFactory): implement this,
+       following the MS docs on the matter (if ProviderName is null/"",
+       return SqlClientFactory.Instance.)
+       (GetDbProviderFactoryInternal): add an internal method for use by
+       SqlDataSourceView.
+       (TrackViewState): don't invoke View.TrackViewState unless we have
+       one.
+       (Selecting): change event handler type to match MS.
+       (Filtering): add missing event.
+       (View): call CreateDataSourceView, don't just create an
+       SqlDataSourceView.
+       
+2006-02-21  Chris Toshok  <toshok@ximian.com>
+
+       * BoundField.cs: ues the ViewState.Get* pattern with default
+       instead of the explicit ViewState lookup + null check, and fix the
+       scope of InitializeDataCell.
+
+       * ButtonField.cs: ues the ViewState.Get* pattern with default
+       instead of the explicit ViewState lookup + null check.
+
+       * CommandField.cs: same.
+
+       * CheckBox.cs: same.
+
+       * AutoGeneratedFieldProperties.cs: same.
+
+       * BaseDataList.cs: same.
+
+       * CircleHotSpot.cs: same.
+
+       * BulletedList.cs: same.
+
+       * DataBoundControl.cs: same.
+
+       * CookieParameter.cs: same.
+
+       * ControlParameter.cs: same.
+
+       * CustomValidator.cs: same.
+
+       * ButtonFieldBase.cs: same.
+
+       * CheckBoxField.cs: same, and fix the scope of InitializeDataCell.
+
+       * AutoGeneratedField.cs: fix scope of InitializeDataCell.
+
+       * BaseValidator.cs: same, and clean up the getter/setter formatting.
+
+       * CompareValidator.cs: same.
+       
+2006-02-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * ListControl.cs: fixed DataSource property, to throw 
+       ArgumentException on incorrect value
+
+2006-02-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * Image.cs: fixed missing border="0" attribute, when image has style, 
+       but border width is not specified.
+
+2006-02-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * CheckBox.cs: fixed InternalAddAttributesToRender, Render to
+       correct the "disabled" attribute in CheckBoxList
+       * CheckBoxList.cs: fixed RenderItem, to correct the "disabled" 
+       attribute in CheckBoxList
+
+2006-02-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * CheckBox.cs: fixed Render function, removed rendering of empty 
+       <span> element if ControlStyleCreated but it's empty.
+       fixed "disabled" attribute, it should be placed into span element
+
+2006-02-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * BoundColumn.cs: fixed InitializeCell function, if DataField is 
+       null or empty string, the cell should not be bound.
+
+2006-02-08  Chris Toshok  <toshok@ximian.com>
+
+       * ListControl.cs (OnDataBinding): in 2.0, only clear our items if
+       AppendDataBoundItems != false.  Also, split all the databinding
+       logic out to DoDataBinding, which we call from here only if
+       !NET_2_0.
+       (DoDataBinding): new function. actually perform the binding.
+       (PerformDataBinding): implement.
+       (PerformSelect): chain up to base class.
+
+2006-02-07  Chris Toshok  <toshok@ximian.com>
+
+       * ContentPlaceHolder.cs: fix ToolboxDataAttribute.
+
+       * Content.cs: use ContentControlBuilderInternal, and add a bunch
+       of unused (for now) EventHandler's here.
+
+       * ContentControlBuilderInternal.cs: rename ContentControlBuilder
+       to this.
+
+2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ListControl.cs: bound checking for Items when loading the control
+       state, as the number might have been changed on the fly. Patch by
+       Elliott Draper.
+
+2006-01-22  Chris Toshok  <toshok@ximian.com>
+
+       * CheckBox.cs: s/GetPostBackClientEvent/GetPostBackEventReference.
+
+       * MultiView.cs (OnBubbleEvent): case the rhs to a string to get
+       the intended comparison right and quiet mcs.
+
+2006-01-15 Konstantin Triger <kostat@mainsoft.com>
+
+       * Button.cs: Add semicolon after client script if does not exist.
+
+2006-01-15 Konstantin Triger <kostat@mainsoft.com>
+
+       * Button.cs: preserve user logic when adding client validation.
+
+2006-01-15 Konstantin Triger <kostat@mainsoft.com>
+
+       * BaseValidator.cs: fixing visibility bahavior
+
+2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * RangeValidator.cs: allow empty data from the control. Patch from Marek
+       Habersack that fixes bug #77239.
+
+2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Calendar.cs: use the DateTimeFormatInfo from the current thread. Patch
+       by Cyrille Colin. Closes bug #77184.
+
+2006-01-08  Konstantin Triger <kostat@mainsoft.com>
+
+       * PagedDataSource.cs, DataGrid.cs: TARGET_JVM changes to let the
+        compilation pass with csc 1.1.
+
+2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DropDownList.cs: HtmlEncode the item text. Fixes bug #76949.
+
+2005-12-07  Chris Toshok  <toshok@ximian.com>
+
+       * BaseValidator.cs: in the uplevel rendering case, don't render
+       the text if the validator's Display attribute is "None".  Should
+       fix bug #76924.
+
+2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * RadioButton.cs: if the 'value' attribute is set explicitly (as
+       RadioButtonList does now), use that as the 'name' attribute.
+       * RadioButtonList.cs: set the AutoPostBack and Enabled properties of
+       the radiobuttons.
+
+       Fixes bug #76706.
+
+2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CheckBox.cs: add possible 'internal' attributes to the input tag. Fix
+       the 'name' attribute when not aligninng to the right.
+       * RadioButton.cs: use NameAttribute instead of GroupName when indexing
+       the collection. Raise the OnCheckedChanged event. Fixes bug #76710.
+
+2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataGrid.cs: clear the control collection on every call to
+       CreateControlHierarchy. Fixes bug #76732.
+
+2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ListBox.cs: Rows and SelectionMode are virtual in 1.1
+
+2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CheckBox.cs: use the NameAttribute property for setting 'name'.
+       * RadioButton.cs: get a UniqueID based identifier for 'name'.
+       Fixes bug #76710.
+
+2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * LinkButton.cs: don't output any javascript when the linkbutton is
+       disabled. Fixes bug #76713.
+
+2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataGrid.cs: use TableHeaderCell instead of TableCell for headers when
+       UseAccesibleHeader property is true. Patch by Robert Jordan.
+
+2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseValidator.cs: 'controltovalidate' must be the ClientID of the
+       control to validate. Fixes bug #76641.
+
+2005-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BoundColumn.cs: when the column is readonly and we're in edit mode,
+       keep it as a TextBox. Fixes bug #76714.
+
+2005-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ListBox.cs: render the 'onchange' attribute when AutoPostback is
+       enabled. Fixes bug #76608.
+
+2005-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CheckBox.cs: AddAttributesToRender was extra in 1.1, so moved all
+       the logic to Render and make it render the ID, which fixes bug #76596.
+
 2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * Repeater.cs: someone forgot the curly brackets. Fixes bug 76537.