2008-07-16 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / ChangeLog
index 1459f20d15745a9a3634e5e86d3b49cb9b644652..b0eac139fe783087511bb940977f89c892d8bbf6 100644 (file)
@@ -1,3 +1,410 @@
+2008-07-16  Marek Habersack  <mhabersack@novell.com>
+
+       * XmlDataSource.cs: check if Page isn't null before stringifying
+       it in GetDataKey (), fixes bug #409492
+
+2008-07-13  Roei Erez  <roeie@mainsoft.com>
+
+       * GridView.cs: When the RowDataBound event is invoked, the value
+       of GridView1.DataKeys should contains all the keys up untill the
+       current row, and not be empty.
+       I only changed the order of the user event invocation and the addition
+       to the collection.
+
+2008-07-13  Roei Erez  <roeie@mainsoft.com>
+
+       * TreeView.cs: In case of multiple tree node bingings, select 
+       The first one and not the last one.
+
+2008-07-10  Roei Erez  <roeie@mainsoft.com>
+
+       * HyperlinkField.cs: Changed behavior of HyperLinkField bound field key 
+       to be case insensitive.
+
+2008-07-03  Marek Habersack  <mhabersack@novell.com>
+
+       * CheckBox.cs: do not render the language="javascript" attribute
+       in the 2.0 profile.
+
+2008-07-02  Marek Habersack  <mhabersack@novell.com>
+
+       * GridView.cs: minor optimizations (removed a foreach loop,
+       replaced calls to Array.Length with a variable containing the
+       length).
+
+2008-06-30  Marek Habersack  <mhabersack@novell.com>
+
+       * ObjectDataSourceView.cs, Menu.cs, DataList.cs,
+       CustomValidator.cs: hush the warnings
+
+2008-06-10  Noam Lampert  <noaml@mainsoft.com>
+
+       * ListItemCollection.cs: Provide viewstate for dirty collection even if it is empty.
+
+2008-05-30  Marek Habersack  <mhabersack@novell.com>
+
+       * BaseDataBoundControl.cs, ChangePassword.cs, CustomValidator.cs,
+       DataControlFieldCollection.cs, DataControlField.cs,
+       PasswordRecovery.cs, PagerSettings.cs: do not use synthetized
+       event accessors (to avoid locks).
+
+2008-05-18  Marek Habersack  <mhabersack@novell.com>
+
+       * HierarchicalDataBoundControl.cs: Modified GetData method to check if
+       DataSource implements IHierarchicalEnumerable and if so constructs and
+       returns a new instance of ReadOnlyDataSourceView. This provides functional
+       compatibility with the Microsoft.NET framework. Fixes bug
+       #395209. Patch contributed by James Fitzsimons
+       <james.fitzsimons@gmail.com>, thanks!
+
+2008-05-06  Marek Habersack  <mhabersack@novell.com>
+
+       * Calendar.cs: do not create dateInfo in the constructor - culture
+       might be not set yet at this point. Fixes bug #323566
+       Added a private property, DateInfo, which creates the dateInfo
+       when requested.
+
+2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * BulletedList.cs: Avoid calling ToString on a string.
+       * ButtonField.cs: Throw, not just create, the exceptions. 
+       * HyperLinkField.cs: Throw, not just create, the exceptions. 
+       * ImageField.cs: Throw, not just create, the exception. Avoid calling
+       ToString on a string.
+       * ListControl.cs: Avoid calling ToString on a string.
+       [All issues were found using Gendarme]
+
+2008-04-30  Marek Habersack  <mhabersack@novell.com>
+
+       * SiteMapDataSource.cs: when no starting node is found, return
+       null instead of Provider.RootNode. Fixes bug #323994
+
+2008-04-24  Marek Habersack  <mhabersack@novell.com>
+
+       * SqlDataSource.cs: raise the DataSourceChangedEvent when setting
+       ConnectionString, ProviderName or DataSourceMode properties only
+       when the new value differs from the old one. Fixes bug #359392
+
+2008-04-16  Marek Habersack  <mhabersack@novell.com>
+
+       * ObjectDataSourceView.cs: ExecuteSelect should return an empty
+       aray when no data has been retrieved from the specified source
+       type. Fixes bug #380106
+
+2008-04-15  Marek Habersack  <mhabersack@novell.com>
+
+       * MailDefinition.cs: dispose of streams the way it should
+       be done.
+
+2008-04-10  Marek Habersack  <mhabersack@novell.com>
+       
+       * RadioButton.cs: adjust 'name' and 'value' attribute values to
+       match MS.NET. Fixes bug #378024
+       
+       * CheckBoxList.cs: set the Selected property to the value in POST
+       data only if the item in question was enabled before postback
+       occurred. Fixes bug #377703
+
+       * ListControl.cs: make sure the owned items' Enabled property is
+       set to the same value what ListControl's. Fixes bug #377703
+
+       * ListItemCollection.cs: fixed SetDirty to store the index of the
+       last dirtied item properly. Fixes bug #377703
+       For the 2.0 profile, set the ListItem instances Enabled property
+       to the value of the owning ListControl (internal ItemsEnabled
+       property was added to make it possible). Fixes bug #377703
+
+2008-04-08  Dean Brettle <dean@brettle.com>
+
+       * DataBoundControl.cs (InternalPerformDataBinding), 
+       HierarchicalDataBoundControl.cs (InternalPerformDataBinding),
+       WebControl.cs (Render): fixed cast errors when a ControlAdapter
+       that wasn't of the type corresponding to the control was used.
+
+2008-04-03  Marek Habersack  <mhabersack@novell.com>
+
+       * DataList.cs: use the value of SelectedIndex, not selectedIndex,
+       to return the key value in the SelectedValue property. Fixes bug
+       #376519. Patch from Sergey Kuleshov <svyatogor@gmail.com>, thanks!
+
+2008-03-12  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * AutoGeneratedField.cs, CheckBoxField.cs: fixed OnDataBindField,
+       should hide checkbox only if DataItem is not defined
+
+2008-03-09  Dean Brettle <dean@brettle.com> 
+
+       * DetailsView.cs, ListControl.cs, DataBoundControl.cs, 
+       FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs: 
+       added support for using ControlAdapters when present.
+       
+       * WebControl.cs: fixed implementation of IsEnabled to match 
+       documentation.
+
+       * Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of 
+       RenderMenuItem() if an adapter is present.  MenuAdapter.RenderItem() 
+       calls back to new Menu.RenderItem() internal method which calls
+       RenderMenuItem() with the appropriate parameters.
+
+2008-02-25 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * GridView.cs:
+       at Update and Delete use not read only coppies of dictionaries
+       in event argumens, that allows user to change them before corresponding
+       DataSource's method is called.
+
+2008-02-20 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Login.cs: render id attribute of root element correctly.
+
+2008-02-18  Marek Habersack  <mhabersack@novell.com>
+
+       * FormView.cs: the ItemCreated must be fired before data is bound
+       to the FormView. Fixes bug #360434
+
+2008-02-07 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Login.cs: render id attribute of root element correctly.
+
+2008-02-05  Marek Habersack  <mhabersack@novell.com>
+
+       * FileUpload.cs: make sure FileContent always returns the input
+       stream positioned at the beginning. Fixes bug #356846
+
+2008-01-31 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Calendar.cs: resolve Next/Prev. month link date correctly.
+
+2008-01-29 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * TreeView.cs: add XPFileExplorer icon set.
+
+2008-01-28 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Menu.js: dynamic nodes are positioned after hover style of 
+       parent node is applied.
+
+2008-01-24  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataSourceCacheManager.cs: fixed GetKeyFromParameters, incase more
+       than one datasource using the same object with the same select method
+
+2008-01-23 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * ValidationSummary.cs:
+       refactoring: If page contents instance of IScriptManager, it calls 
+       it's API instead Page.ClientScript.                                                                     
+
+2008-01-23 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Menu.cs: fixed rendering.
+
+2008-01-16 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Wizard.cs:
+       manage history state on "MovePrevious" action.  
+
+2008-01-16 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * BulletedList.cs:
+       resolve BulletImageUrl,
+       register for event validation.  
+
+2008-01-13 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * TreeView.cs:
+       * TreeView.js:
+       upgrade client side script due to changes in webform.js.                
+
+2008-01-07 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * BaseCompareValidator.cs:
+       * BaseValidator.cs:
+       * CompareValidator.cs:
+       * CustomValidator.cs:
+       * RangeValidator.cs:
+       * RegularExpressionValidator.cs:
+       * RequiredFieldValidator.cs:
+       refactoring: If page contents instance of IScriptManager, validators call 
+       it's API instead Page.ClientScript.                                                                     
+
+2008-01-07 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Button.cs:
+       * ImageButton.cs:
+       * LinkButton.cs:
+       for TARGET_J2EE used CreateActionUrl instead ResolveClientUrl
+       in GetPostBackOptions.                  
+
+2008-01-06 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * DetailsView.cs: render invisible rows correct.
+
+2008-01-06 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * DataControlField.cs: prevent infinite recursion
+
+2008-01-01  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataSourceCacheManager.cs: fixed SetCachedObject. fixed sliding
+       expiration timespan
+
+2007-12-31  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * DataSourceCacheManager.cs: fixed SetCachedObject, fixed
+       CacheDependency keys
+
+2007-12-24 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * TreeView.cs: revert changes from r91230
+
+2007-12-18  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * ListControl.cs: fixed Load/SaveViewState, removed selected indices
+       storing
+       * ListItem.cs: fixed Load/SaveViewState, added selected state storing
+       * ListItemCollection.cs: fixed Load/SaveViewState, added flag to not
+       rebuild the collection if was'nt changed
+
+2007-12-13  Marek Habersack  <mhabersack@novell.com>
+
+       * Menu.cs, TreeView.cs: optimize use of String.Format in
+       OnPreRender.
+       Speed optimization - use String.Concat instead of String.Format in
+       some cases.
+
+       * GridView.cs, DetailsView.cs: optimize use of String.Format in
+       OnPreRender.
+
+       * CheckBox.cs, AccessDataSource.cs, WebColorConverter.cs,
+       WebControl.cs,TextBox.cs, DropDownList.cs, ValidationSummary.cs,
+       ListBox.cs, Panel.cs, BaseValidator.cs, LinkButton.cs: speed
+       optimization - use String.Concat instead of String.Format in some cases.
+
+2007-12-13  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * Menu.cs: fixed rendering without head tag on page
+
+2007-11-19  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * Calendar.cs: performance optimizations:
+       BuildLink fixed, StringBuilder used.
+       TodaysDate DateTime.Today call cahced.
+
+2007-11-19  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * Unit.cs: performance optimization: ToString fixed, string.Concat used
+       instead of string.Format
+
+2007-11-19  Vladimir Krasnov  <vladimirk@mainsoft.com>
+
+       * Style.cs: performance optimization: suppress finalizer added
+
+2007-11-08 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * BoundField.cs:
+       * ImageField.cs:
+       evaluate bound value using ThisExpession ("!") properly 
+
+2007-11-07 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * WebControl.cs: enabled state restored properly.
+
+2007-11-06 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * TextBox.cs:
+       refactoring for NET_2_0:
+       Text is removed from view state in case of need at SaveViewState phase.          
+
+2007-11-06 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * ListControl.cs:
+       SelectedValue/SelectedIndex is set during DataBinding always.    
+
+2007-11-06  Marek Habersack  <mhabersack@novell.com>
+
+       * DataGrid.cs: add RenderTable before the DataGridItems, so that
+       numbering of children is the same what on MS.NET.
+       If there are any data items, require a postback script.
+       Fixes bug #319449
+       
+       * ChildTable.cs: removed DOS EOLs.
+
+2007-10-31 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Login.cs: 
+       does not perform authentication if Page.IsValid returns false;
+       the fix makes control works with disabled client side validation.
+
+2007-10-31 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * DataList.cs: 
+       state of DataList.Items are restored correct on PostBack
+       such Items.Count and ItemType.
+
+2007-10-31 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * BaseValidator.cs: 
+       validator is rendered correct if EnabledClientClient is false.
+
+2007-10-30 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * Image.cs: fixed management state of Enabled property.
+       * WebControl.cs: refactoring in management state of Enabled property.
+
+2007-10-23  Marek Habersack  <mhabersack@novell.com>
+
+       * ListBox.cs, Table.cs: use Render{Begin,End}Tag
+       instead of the Write* counterparts when rendering contents.
+
+2007-10-18  Marek Habersack  <mhabersack@novell.com>
+
+       * Menu.js: a workaround for an IE bug. IE recalculates element's
+        offsetWidth when the element's _height_ is set - which in case of
+        elements with overflowing content results in a value that's just
+        slightly smaller than the client window width. In effect, a long
+        submenu will also be very wide, which isn't desirable. Fixes bug
+        #322809
+
+2007-10-15  Marek Habersack  <mhabersack@novell.com>
+
+       * ObjectDataSourceView.cs: use HttpApplication.LoadType instead of
+       Type.GetType.
+
+       * BulletedList.cs: html encode the item text. Fixes bug #333550.
+
+2007-10-01  Marek Habersack  <mhabersack@novell.com>
+
+       * ListItem.cs: make HasAttributes available for the 1.1 profile as
+       well.
+
+       * DropDownList.cs: render custom ListItem attributes in the 1.1
+       profile. Fixes bug #326288
+
+2007-09-27  Marek Habersack  <mhabersack@novell.com>
+
+       * Button.cs: added missing OnPreRender method.
+
+2007-09-25  Marek Habersack  <mhabersack@novell.com>
+
+       * WebControl.cs: added an internal method, BuildScriptAttribute,
+       which merges the specified JavaScript code in an attribute, with
+       the value of that attribute specified by the user.
+
+       * CheckBox.cs, DropDownList.cs: AutoPostBack handling makes sure to
+       preserve user-specified attribute value, if present.
+
+       * ListBox.cs, TextBox.cs: AddAttributesToRender calls the base
+       after doing its job. AutoPostBack handling makes sure to preserve
+       user-specified attribute value, if present. Fixes bug #327816.
+
+2007-09-21  Marek Habersack  <mhabersack@novell.com>
+
+       * ListItem.cs: don't save StateBag in the control state - the
+       class is not serializable and therefore ObjectStateFormatter
+       cannot convert it. Instead have the sb object save its own state
+       and store the returned value. Fixes bug #326288.
+
 2007-09-20  Marek Habersack  <mhabersack@novell.com>
 
        * LoginView.cs: implemented RoleGroups support. Fixes bug
 
        * CreateUserWizardStep.cs: fixed validators message display
 
-2006-08-25  Korn__l P__l  <kornelpal@gmail.com>
+2006-08-25  Kornél Pál  <kornelpal@gmail.com>
 
        * FileUpload.cs: Use assembly name constants.
 
 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * DataList.cs: correctly initialize editable items when there's an
-       EditItemTemplate. Patch by Jaros_\82aw Pawlak.
+       EditItemTemplate. Patch by JarosÅ\82aw Pawlak.
 
 2006-07-13  Juraj Skripsky <js@hotfeet.ch>
 
 2004-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * ListItemCollection.cs: fixed bug when indexing changed elements in
-       LoadViewState. Patch from Alois B_\9bla__ka.
+       LoadViewState. Patch from Alois Bělaška.
 
 2004-10-20 Sanjay Gupta <gsanjay@novell.com>