* 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.
svn path=/trunk/mcs/; revision=56007
* CheckBox.cs: s/GetPostBackClientEvent/GetPostBackEventReference.
* MultiView.cs (OnBubbleEvent): case the rhs to a string to get
the intended comparison right and quiet mcs.
svn path=/trunk/mcs/; revision=55915
* BaseValidator.cs: in the uplevel rendering case, don't render
the text if the validator's Display attribute is "None". Should
fix bug #76924.
svn path=/trunk/mcs/; revision=54021
* 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.
svn path=/trunk/mcs/; revision=53741
* 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.
svn path=/trunk/mcs/; revision=53739
* CheckBox.cs: use the NameAttribute property for setting 'name'.
* RadioButton.cs: get a UniqueID based identifier for 'name'.
Fixes bug #76710.
svn path=/trunk/mcs/; revision=53323
* DataGrid.cs: use TableHeaderCell instead of TableCell for headers when
UseAccesibleHeader property is true. Patch by Robert Jordan.
svn path=/trunk/mcs/; revision=53244
* 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.
svn path=/trunk/mcs/; revision=52528
* Literal.cs: allow LiteralControl as child, but instead of adding it
to the control collection, it just gets the Text out of it.
svn path=/trunk/mcs/; revision=52149
* PagedDataSource.cs: fix range when we're at the last page.
* DataGrid.cs: only need to keep the item count in the viewstate.
Fixes bug #76503.
svn path=/trunk/mcs/; revision=52068
* ListControl.cs: made GetSelectedIndices() internal.
* ListBox.cs: html-encode the item text. Fixed single and multiple
selection handling. All the tests pass now. Closes bug #76478.
svn path=/trunk/mcs/; revision=51998
* System.Web.UI/Page.cs: don't cache the 'Validate()' results.
IsValid retests the validators again.
* System.Web.UI.WebControls/BaseDataList.cs: Type.GetTypeCode
was fixed and now does not throw a nullref, so we have to do
it by ourselves here to make the test happy.
* System.Web.UI.WebControls/BaseValidator.cs: render the text of
the error message even if we set IsValid programatically. Don't
use 'valid' directly, as IsValid is virtual.
Fixes bug #76299.
svn path=/trunk/mcs/; revision=51840
* DataList.cs: copied and adapted PrepareControlHierarchy from DataGrid.
Now the items get the attributes from the styles in datalist. Add the
separators after each item, not before. GetItemStyle returns the actual
item style, not the styles in the datalist. Fixes bug #76384 and all
new tests pass.
svn path=/trunk/mcs/; revision=51506
* FontInfo.cs: Gendarme strikes again. Sealed class have no need for
inheritance demands.
* FontUnit.cs: Structs are sealed so there's no need for inheritance
demands.
* Unit.cs: Structs are sealed so there's no need for inheritance
demands.
svn path=/trunk/mcs/; revision=51358
* DataGrid.cs: change the ListItemType for the item selected, set
SelectedIndex before calling OnSelectedIndexChanged and set the selected
item type correctly when creating the columns. Fixes bug #76334.
* ButtonColumn.cs:
* EditCommandColumn.cs: use a ForeColorLinkbutton, otherwise when
selecting the row, the button keep the regular link color.
* DataGridColumn.cs: made the class internal.
svn path=/trunk/mcs/; revision=51320
* 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
* ImageButton.cs: use UniqueID in LoadPostData and also try just the
UniqueID without appending a ".x" or ".y". Fixes several issues in
mojoPortal. Thanks to Joe Audetter for his patience.
svn path=/trunk/mcs/; revision=51145
* FontInfo.cs: removed useless ctor.
* Style.cs: keep here some commented out debugging code.
* DataGrid.cs: the Items property does not create a new arraylist if
the items_list was already initialized. Add case for Separator.
* DataGridColumn.cs: when sorting is enabled, the linkbutton rendered
in the header columns has a special ForeColor handling.
svn path=/trunk/mcs/; revision=51095
* DataGrid.cs: PageCount must persist in ViewState too and returns the
number of pages in the paged data source once we set that. Fix checks
for visibility of the pager: no more 2 pagers when custom paging is
enabled.
svn path=/trunk/mcs/; revision=51084
* ImageButton.cs: fix a bug reported on the list. We were triggering the
command event on every POST. And the 'name' attribute was not being
rendered, so the 'x,y' coordinates didn't have 'uniqueid.' prepended
and we couldn't find the values.
svn path=/trunk/mcs/; revision=51063
* DataGrid.cs: when paging is enable, the actual number of items is not
the number of items rendered before the postback, but that number times
the number of pages. Now we store the page count in the viewstate. Also,
as the number might be big, don't allocate an array of objects to fake
the collection for the PagedDataSource, but use the new NCollection
class instead, which provides cheap (memory wise) enumerator for an
arbitrary number of items. Thanks to "Adriano" for the test case.
svn path=/trunk/mcs/; revision=51027
* System.Web.UI/DesignerDataBoundLiteralControl.cs: changed autoid api.
* System.Web.UI/DataBoundLiteralControl.cs: changed autoid api.
* System.Web.UI/Control.cs: fixlet for UniqueID and weird test case.
Removed PreventAutoID and only use the property to set that value.
* System.Web.UI/LiteralControl.cs: changed autoid api.
* System.Web.UI.WebControls/Button.cs: implemented 2.0
RaisePostBackEvent in terms of the existing code in 1.1 (or viceversa).
RenderContents() does nothing.
* System.Web.UI.WebControls/DataGrid.cs: changed autoid api.
* System.Web.UI.WebControls/EditCommandColumn.cs: only 'Update' causes
validation.
* System.Web.UI.WebControls/TableCell.cs: changed autoid api.
RenderContents checks the number of controls to decide what to do, not
the value of Text in the viewstate.
* System.Web.UI.WebControls/TableRow.cs: changed autoid api.
* System.Web.UI.WebControls/BoundColumn.cs: SelectedItem was missing
when attaching a DataBind event. When we get an EditItem, we need a
TextBox to be created and this one will be the one that gets the event.
Changed ItemDataBinding to deal with a TextBox too.
All tests pass now in the default profile (2 not run).
svn path=/trunk/mcs/; revision=51019
* PagedDataSource.cs: fix IsLastPage. All tests pass.
* DataGrid.cs: InitializePager always add a cell and it's brand new. No
need to keep the old one in a field. Now all tests pass here too.
svn path=/trunk/mcs/; revision=50983
* PagedDataSource.cs: don't use the properties when they just return a
field. Fixed Count when paging is enabled. In GetEnumerator, IList goes
before ICollection (otherwise, an IList will always fall under the
ICollection case). The enumerator for lists will be empty if 'start'
is beyond the list size. All existing tests pass, but one in
DataGridTest that fails because of some problem with the paging.
svn path=/trunk/mcs/; revision=50972