2005-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Tue, 4 Oct 2005 07:36:02 +0000 (07:36 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Tue, 4 Oct 2005 07:36:02 +0000 (07:36 -0000)
* Calendar.cs: remove Console.
* ListBox.cs: the name is the UniqueID, not the ClientID.
* WebControl.cs: Attributes is case insensitive.

svn path=/trunk/mcs/; revision=51148

mcs/class/System.Web/System.Web.UI.WebControls/Calendar.cs
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/ListBox.cs
mcs/class/System.Web/System.Web.UI.WebControls/WebControl.cs

index 13226202e1c8532873da0bf1956f833cde62ae24..66af393d3db2de5fd2a89617dce35ba82c67c712 100644 (file)
@@ -1251,7 +1251,6 @@ namespace System.Web.UI.WebControls {
                [WebCategory ("Action")]
                public event EventHandler SelectionChanged {
                        add {
-                               Console.WriteLine ("Adding one");
                                Events.AddHandler (SelectionChangedEvent, value);
                        }
                        remove {
index 5b318d66274bf5a9398042726aa4ad39bb1accaa..74c4979381e4bc6ef3b6b32b1732e995e2df49e9 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Calendar.cs: remove Console.
+       * ListBox.cs: the name is the UniqueID, not the ClientID.
+       * WebControl.cs: Attributes is case insensitive.
+
 2005-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * ImageButton.cs: use UniqueID in LoadPostData and also try just the
index 4e518f9cd7fb2df16a4d734facf9b2ae92b9eb88..36c045ee376771e497400746bf8349ebcbb25e70 100644 (file)
@@ -149,9 +149,9 @@ namespace System.Web.UI.WebControls {
 
 #if NET_2_0
                        if (ID != null)
-                               writer.AddAttribute (HtmlTextWriterAttribute.Name, ClientID);
+                               writer.AddAttribute (HtmlTextWriterAttribute.Name, UniqueID);
 #else
-                       writer.AddAttribute (HtmlTextWriterAttribute.Name, ClientID);
+                       writer.AddAttribute (HtmlTextWriterAttribute.Name, UniqueID);
 #endif
 
                        if (SelectionMode == ListSelectionMode.Multiple)
index 850015d346af60cb0b5820f0a3dd204e2328bfd1..e6d388a85c64b973ba7c15d83fd8ed72882e8d0f 100644 (file)
@@ -92,7 +92,7 @@ namespace System.Web.UI.WebControls {
                public AttributeCollection Attributes {
                        get {
                                if (attributes == null) {
-                                       attribute_state = new StateBag ();
+                                       attribute_state = new StateBag (true);
                                        if (IsTrackingViewState)
                                                attribute_state.TrackViewState ();