Commit Graph
1458 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 6ea0412c5b 2005-09-29 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-09-29 05:23:34 +00:00
Gonzalo Paniagua Javier 3d8f5432c4 2005-09-28 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-09-28 21:42:00 +00:00
Gonzalo Paniagua Javier bc9bd367eb 2005-09-28 Gonzalo Paniagua Javier <[email protected]>
* Style.cs: fix the 2.0 build.


svn path=/trunk/mcs/; revision=50950
2005-09-28 15:39:02 +00:00
Gonzalo Paniagua Javier 285d824d6a 2005-09-28 Gonzalo Paniagua Javier <[email protected]>
* System.Web_test.dll.sources: add new test.

	* System.Web.UI/AttributeCollection.cs: avoid code duplication and
	don't add "style" to the bag, or it will overwrite the settings made
	by CssStyleCollection.

	* System.Web.UI/CssStyleCollection.cs: make it throw where MS throws.
	Minimize the number of times we create the "style" string and take
	care of updating it for the AttributeCollection. FillStyle and
	BagToString are now private. One should use the 2.0 (internal in <2.0)
	Value property.

	* System.Web.UI.WebControls/Style.cs: avoid unnecesary creation of a
	CssStyleCollection and instead write the style attributes directly to
	the HtmlTextWriter.

	* System.Web.UI.WebControls/CheckBox.cs: adapted to new API.

	* DataGrid.cs: handle null data sources. Fixed the contions that make
	the table to be added to the Controls collection.

	* System.Web.UI.WebControls/Calendar.cs: the table needed an ID and the
	attributes from the parent. Also don't create the ControlStyleCollection
	if it has not already been created.


svn path=/trunk/mcs/; revision=50931
2005-09-28 08:05:58 +00:00
Gonzalo Paniagua Javier 711df0ad3d 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
* Calendar.cs: TrackViewState should be called upon creation, not on
	every get_XXX call. Cleanup.


svn path=/trunk/mcs/; revision=50899
2005-09-27 23:46:56 +00:00
Gonzalo Paniagua Javier a04b30735d 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: fix another test. The ID of the table generated by the
	datagrid is set to the one on the datagrid if no one set the ID for the
	table.


svn path=/trunk/mcs/; revision=50831
2005-09-27 08:02:27 +00:00
Gonzalo Paniagua Javier a9a0c2f90e 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
* ListControl.cs: this fixes TestValueFieldAndTextFormat from
	DropDownListTest.


svn path=/trunk/mcs/; revision=50829
2005-09-27 07:43:52 +00:00
Gonzalo Paniagua Javier 2542cb7c58 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
* FontUnit.cs: use a table for FontSize names, as the X{1,2}.* ones are
	converted to string as X{1,2}-.*. All FontUnitTests pass now.
	* Unit.cs: throw a format exception when there's not number or minus
	sign in the first non-whitespace character.


svn path=/trunk/mcs/; revision=50821
2005-09-27 06:16:55 +00:00
Gonzalo Paniagua Javier e1f2e36a5b console
svn path=/trunk/mcs/; revision=50815
2005-09-27 05:04:42 +00:00
Gonzalo Paniagua Javier 24fdf865f0 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
* ListControl.cs: SelectedIndex/SelectedValue can be set before
	DataBinding () is called on the control, so we have to keep this values
	around and use them after the data is read. If both properties are
	used, they must refer to the same item.


svn path=/trunk/mcs/; revision=50814
2005-09-27 05:04:25 +00:00
Gonzalo Paniagua Javier e30432766e 2005-09-24 Gonzalo Paniagua Javier <[email protected]>
* DataList.cs: fill in the data keys from BaseDataList so that the
	events can see them. Only assign DataItem when using data binding and
	nullify it after all events are raised. Thanks to Joe Audette for quick
	updates on this.


svn path=/trunk/mcs/; revision=50695
2005-09-24 22:45:41 +00:00
Gonzalo Paniagua Javier 80bbcd29e4 2005-09-24 Gonzalo Paniagua Javier <[email protected]>
* DataList.cs: OnItemCommand() is raised any time OnBubbleEvent is
	called.


svn path=/trunk/mcs/; revision=50680
2005-09-24 18:25:30 +00:00
Sebastien Pouliot adf172ecf9 2005-09-23 Sebastien Pouliot <[email protected]>
* Button.cs: For 2.0 don't add the "name" attribute unless there's an 
	id.
	* DataGrid.cs: Fix TagKey (table) for 2.0.
	* DataList.cs: Revert 2.0 specific stuff that was changed in RC.
	* DropDownList.cs: For 2.0 don't add the "name" attribute unless 
	there's an id.
	* ListBox.cs: For 2.0 don't add the "name" attribute unless there's an
	id.
	* RoleGroupCollection.cs: Fix "extra" exception in Remove method.
	* Style.cs: Fixed (2.0) RegisteredCssClass to returns String.Empty 
	(i.e. not null).
	* TextBox.cs: For 2.0 don't add the "name" attribute unless there's an
	id.
	* TreeView.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* XmlDataSource.cs: Added declarative security (Link and Inheritance
	demands) for Minimal.


svn path=/trunk/mcs/; revision=50583
2005-09-23 15:46:05 +00:00
Sebastien Pouliot 2493a78c34 2005-09-23 Sebastien Pouliot <[email protected]>
* FontUnit.cs: Added, but only for 1.x, declarative security (Link and
	Inheritance demands) for Minimal.
	* Label.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal.
	* ListItem.cs: Added declarative security (LinkDemands) for Minimal.
	* ListItemCollection.cs: Added declarative security (LinkDemands) for 
	Minimal.
	* MonthChangedEventArgs.cs: Added declarative security (Link and, for 
	2.0, Inheritance demands) for Minimal.
	* PagedDataSource.cs: Added declarative security (LinkDemands) for 
	Minimal.
	* Panel.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal.
	* Repeater.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* RepeatInfo.cs: Added declarative security (LinkDemands) for Minimal.
	* SelectedDatesCollection.cs: Added declarative security (LinkDemands)
	for Minimal.
	* TargetConverter.cs: Added declarative security (Link and Inheritance
	demands) for Minimal.
	* Unit.cs: Added, but only for 1.x, declarative security (Link and 
	Inheritance demands) for Minimal.
	* ValidatedControlConverter.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* WebColorConverter.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* Xml.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal.
	* ValidationSummary.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.


svn path=/trunk/mcs/; revision=50572
2005-09-23 14:10:35 +00:00
Sebastien Pouliot 41327cef90 2005-09-23 Sebastien Pouliot <[email protected]>
* UnitConverter.cs: Remove conversion from Unit (see unit tests).


svn path=/trunk/mcs/; revision=50571
2005-09-23 13:25:23 +00:00
Gonzalo Paniagua Javier 6465aa1d0d remove conflict line
svn path=/trunk/mcs/; revision=50558
2005-09-23 03:00:57 +00:00
Ben Maurer a9c49a456b oops
svn path=/trunk/mcs/; revision=50552
2005-09-23 01:24:47 +00:00
Ben Maurer 9a51dafa35 2005-09-22 Ben Maurer <[email protected]>
* BulletedList.cs: Remove the cacheEnabled thing. I was thinking
	it took O(height) time, not O(1).


svn path=/trunk/mcs/; revision=50550
2005-09-23 01:15:49 +00:00
Miguel de Icaza cbfe1dff48 Remove a number of compilation warnings.
2005-09-22  Miguel de Icaza  <[email protected]>

	* DataBindingCollection.cs: Raise the event, remove MonoTODO.

	* MinimizableAttributeTypeConverter.cs: Fix warning, compare to a
	string. 



svn path=/trunk/mcs/; revision=50544
2005-09-23 00:13:59 +00:00
Sebastien Pouliot 0d91a7a29c 2005-09-21 Sebastien Pouliot <[email protected]>
* CheckBoxList.cs: Fix unit test failure (which matched bug #48802).


svn path=/trunk/mcs/; revision=50402
2005-09-21 18:48:01 +00:00
Sebastien Pouliot 9c6f49799f 2005-09-21 Sebastien Pouliot <[email protected]>
* AdCreatedEventArgs.cs: Added declarative security (Link and, for 
	2.0, Inheritance demands) for Minimal.
	* BaseCompareValidator.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* BaseDataBoundControl.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* BaseValidator.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* BoundColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* ButtonColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CalendarDay.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CheckBoxList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CompareValidator.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* CustomValidator.cs: Added declarative security (Link and Inheritance
	demands) for Minimal.
	* DataBoundControl.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* DataGridItemCollection.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* DataKeyCollection.cs: Added declarative security (LinkDemands) for 
	Minimal.
 	* DataListItemCollection.cs: Added declarative security (LinkDemands) 
	for Minimal.
	* DataListItem.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* FontNamesConverter.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* HyperLink.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* HyperLinkColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* Image.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal.


svn path=/trunk/mcs/; revision=50392
2005-09-21 17:24:38 +00:00
Gonzalo Paniagua Javier 44ffd5c91c 2005-09-20 Gonzalo Paniagua Javier <[email protected]>
* BaseDataList.cs: it's the DataKeysArray what is stored in "DataKeys",
	not the DataKeys.
	* DataGrid.cs: add the keys to BaseDataList.DataKeysArray. When using
	a data source, first try reflection, then componentmodel. If we get
	an enumerator, keep it around, as MS only calls GetEnumerator once.
	Throw an exception if no columns can be created from the given data
	source. Tested with DbDataRecord, DataTable, ArrayList and
	ICustomTypeDescriptor.


svn path=/trunk/mcs/; revision=50335
2005-09-20 21:27:23 +00:00
Sebastien Pouliot 0bbe2342c3 2005-09-20 Sebastien Pouliot <[email protected]>
* AccessDataSource.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [ToolboxBitmap] on class.
	* AdRotator.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Removed extra Page and ViewState properties.
	* BulletedList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* Button.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Added [SupportsEventValidation] on class (2.0).
	* Calendar.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* CheckBox.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* CompositeControl.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added new protected RecreateChildControls method.
	* DataControlCommands.cs: Added declarative security (LinkDemands) for 
	Minimal. Added private ctor.
	* DataGrid.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Fixed properties for 2.0 (mostly removing 
	[Bindable]). Added override for TagKey property.
	* DataGridColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [UrlProperty] on HeaderImageUrl (2.0).
	* DataGridItem.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added IDataItemContainer interface for 2.0.
	* DataGridPagerStyle.cs: Added declarative security (LinkDemands) for 
	Minimal. Remove [Bindable] from 2.0 and add [Localizable].
	* DataList.cs: Removed [Load|Save]ControlState methods.
	* DropDownList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* EditCommandColumn.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal. Added missing attributes, 
	[DefaultValue] and [Localize] for 2.0.
	* FontInfo.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Remove [Bindable] and added [RefreshProperties] 
	for 2.0.
	* Login.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Fixed IsStyleEmpty. Removed extra [Themeable] attributes.
	* ImageButton.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* LinkButton.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* ListBox.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Added [SupportsEventValidation] on class (2.0).
	* Literal.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Removed [EditorBrowsable] on CreateControlCollection method.
	* LoginStatus.cs: Added missing [Themeable] attributes on properties.
	* MenuItemStyle.cs: Changed IsEmpty to public (required to compile - 
	but will be shown as extra).
	* RadioButton.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* RadioButtonList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* RangeValidator.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added missing [Themeable] attributes.
	* RegularExpressionValidator.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal. Remove [Bindable] from 2.0 and add 
	[Localizable].
	* RoleGroupCollection.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal. Fixed base class (changed in RC). 
	Re-implemented CopyTo. Removed some methods.
	* Style.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Remove static IsStyleEmpty and ToString (from 2.0). IsEmpty
	is now public in 2.0.
	* Table.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Added [SupportsEventValidation] on class (2.0).
	* TableCell.cs: Fixed PersistenceMode for 2.0.
	* TextBox.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Added [SupportsEventValidation] on class (2.0).
	* TreeNodeStyle.cs: Changed IsEmpty to public (required to compile - 
	but will be shown as extra).
	* WebControl.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Removed [EditorBrowsable] on ControlStyleCreated 
	property.


svn path=/trunk/mcs/; revision=50329
2005-09-20 19:41:00 +00:00
Gonzalo Paniagua Javier 459c5b276e 2005-09-19 Gonzalo Paniagua Javier <[email protected]>
* TableStyle.cs: fixed typo that prevented restoring GridLines from
	a saved viewstate.

	* DataGrid.cs: the table does not get an auto ID. When restoring from
	viewstate, use all the saved columns, not just that data bound ones. Set
	the owner of the BoundColumns created. Save/restore columns.
	OnItemCreated happens after the item is initialized and the data item is
	set before the event and nullified after OnItemDataBound.
	Add the render_table to the Controls immediately, otherwise we might get
	errors from child controls such as "must be rendered inside a form".
	Keep the items created in the list waiting for them.
	The table uses the attributes from the DataGrid and ControlStyle.
	Raise OnItemCommand on all bubble events and don't propagate bubble
	event up in the hierarchy

	* TableCell.cs: it does not get an automatic ID.
	* BoundColumn.cs: FormatDataValue returns an empty string on null input
	(there was already a test for this).

	Fixes bug #76117.


svn path=/trunk/mcs/; revision=50218
2005-09-19 07:33:26 +00:00
Gonzalo Paniagua Javier 47eb9c65d2 2005-09-17 Gonzalo Paniagua Javier <[email protected]>
* DataGridColumnCollection.cs: track the view state in the newly added
	items.


svn path=/trunk/mcs/; revision=50187
2005-09-17 23:09:52 +00:00
Gonzalo Paniagua Javier 07993e4864 svn path=/trunk/mcs/; revision=50118 2005-09-15 23:09:18 +00:00
Gonzalo Paniagua Javier 3a63280590 2005-09-15 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: merge column styles too. Fixes bug #76106.
	* DataGridColumn.cs: new internal method to retrieve the styles without
	creating an instance for them.


svn path=/trunk/mcs/; revision=50109
2005-09-15 21:30:36 +00:00
Sebastien Pouliot 9474837730 2005-09-15 Sebastien Pouliot <[email protected]>
* DataControlField.cs, HotSpot.cs, MenuItem.cs, Parameter.cs, 
	Style.cs, TreeNode.cs: Replace _empty_ StateBag.SetDirty () with 
	StateBag.SetDirty (true).


svn path=/trunk/mcs/; revision=50105
2005-09-15 20:56:42 +00:00
Sebastien Pouliot f5ad81d829 2005-09-14 Sebastien Pouliot <[email protected]>
* Menu.cs: Fixed parameter orders for CreateStyleRule.


svn path=/trunk/mcs/; revision=50043
2005-09-14 17:27:08 +00:00
Chris Toshok 8e8d1b5ec0 2005-09-13 Chris Toshok <[email protected]>
* Style.cs: corcompare stuff.

	* RequiredFieldValidator.cs: more corcompare stuff.

	* CheckBoxList.cs: clean up some of the interface methods vs
	protected virtual 2.0 calls.

	* SubMenuStyle.cs: corcompare says this should implement
	ICustomTypeDescriptor... sooo, make it.


svn path=/trunk/mcs/; revision=49984
2005-09-13 21:29:47 +00:00
Gonzalo Paniagua Javier a972887f29 2005-09-13 Gonzalo Paniagua Javier <[email protected]>
* TableCell.cs: do the same as HyperLink and others in
	AddParsedSubobject so that adding a literal control does not remove the
	existing controls if any. Fixes bug #76078.


svn path=/trunk/mcs/; revision=49980
2005-09-13 20:14:07 +00:00
Gonzalo Paniagua Javier 671330710a svn path=/trunk/mcs/; revision=49846 2005-09-10 03:37:54 +00:00
Gonzalo Paniagua Javier d873b87c5f 2005-09-09 Gonzalo Paniagua Javier <[email protected]>
* GridView.cs: don't duplicate class attribute. Fixes bug #75936.


svn path=/trunk/mcs/; revision=49845
2005-09-10 03:37:41 +00:00
Gonzalo Paniagua Javier aea79ce012 2005-09-09 Gonzalo Paniagua Javier <[email protected]>
* ImageButton.cs: fix invalid cast exception.


svn path=/trunk/mcs/; revision=49843
2005-09-10 02:39:08 +00:00
Gonzalo Paniagua Javier 82afb8e676 2005-09-09 Gonzalo Paniagua Javier <[email protected]>
* ListItem.cs: throw in AddParsedSubObject if the object is not a
	LiteralControl.
	* RadioButtonList.cs: implemented LoadPostData and
	RaisePostDataChangedEvent.


svn path=/trunk/mcs/; revision=49841
2005-09-09 23:12:13 +00:00
Chris Toshok 071571acdf 2005-09-09 Chris Toshok <[email protected]>
* CheckBox.cs, CheckBoxList.cs, DropDownList.cs, ImageButton.cs,
	ListBox.cs, RadioButton.cs, RadioButtonList.cs, TextBox.cs: fix up
	LoadPostData/RaisePostDataChangedEvent.


svn path=/trunk/mcs/; revision=49828
2005-09-09 20:25:04 +00:00
Chris Toshok 3ef72d30a0 2005-09-09 Chris Toshok <[email protected]>
* FontInfo.cs (IsEmpty): new internal property, used by
	Style.IsEmpty.

	* Style.cs (IsEmpty): make sure the fontinfo is null or empty as
	well.


svn path=/trunk/mcs/; revision=49824
2005-09-09 19:32:46 +00:00
Gonzalo Paniagua Javier 85d16e470b 2005-09-08 Gonzalo Paniagua Javier <[email protected]>
* ListItemCollection.cs: remove obsoleted methods.
	* ListBox.cs: use IStateManager on the item collection.


svn path=/trunk/mcs/; revision=49714
2005-09-08 15:19:02 +00:00
Miguel de Icaza d0ced61043 Remove dead code
svn path=/trunk/mcs/; revision=49712
2005-09-08 15:13:53 +00:00
Eyal Alalouf f334093c66 Compile under Grasshopper (TARGET_JVM)
svn path=/trunk/mcs/; revision=49691
2005-09-08 12:52:03 +00:00
Chris Toshok 9cc520f4eb 2005-09-07 Chris Toshok <[email protected]>
* Calendar.cs (WriteDay): always add BackColor=Silver,
	ForeColor=White to selected day cells, before copying over the
	selectedDayStyle, if it exists.
	(WriteDays): fix nunit test - if the first day of the month falls
	on the first day of the week, go back one week (effectively adding
	a row of dates from the previous month.)
	(WriteTitle): don't copy the control style to the tableTitle,
	since it might have height specifications, which would make the
	title look rather off.


svn path=/trunk/mcs/; revision=49672
2005-09-08 01:33:49 +00:00
Chris Toshok e198d1de9c 2005-09-07 Chris Toshok <[email protected]>
* ValidationSummary.cs (AddAttributesToRender): we only set
	display=none if there are no errors.

	* BaseValidator.cs (OnPreRender): fix a JS error - on submit we
	call ValidatorOnSubmit, not ValidatorCommonOnSubmit.


svn path=/trunk/mcs/; revision=49658
2005-09-07 19:26:30 +00:00
Chris Toshok 29b8303c76 2005-09-07 Chris Toshok <[email protected]>
* ListControl.cs (SelectedIndex): add comment about how you'd
	think OnSelectedIndexChanged would be called.. and you'd be wrong.
	(Text): implement in terms of SelectedValue.
	(TagKey): do the HAVE_CONTROL_ADAPTERS two-step.
	(LoadControlState): implement - this is where the selected index
	ArrayList gets stuffed in 2.0.
	(OnInit): call Page.RegisterRequiresControlState.
	(OnTextChanged): implement.
	(RenderContents): for now just chain up to base.RenderContents.
	(SaveControlState): save our control state properly.
	(GetSelectedIndices): split this out from SaveViewState to it can
	be used by both that and SaveControlState.
	(SaveViewState): mangle this function so it works in both 2.0 and
	1.0.
	(LoadViewState): same.


svn path=/trunk/mcs/; revision=49612
2005-09-07 05:20:28 +00:00
Chris Toshok 6eaaf77b02 2005-09-06 Chris Toshok <[email protected]>
* BaseValidator.cs (AddAttributesToRender): render our ClientID if
	we weren't assigned an ID.

	* ValidationSummary.cs (AddAttributesToRender): same.


svn path=/trunk/mcs/; revision=49609
2005-09-07 02:57:08 +00:00
Chris Toshok 8bc43b8bc8 2005-09-06 Chris Toshok <[email protected]>
* WebControl.cs: revert the last change.


svn path=/trunk/mcs/; revision=49608
2005-09-07 02:23:00 +00:00
Chris Toshok cc8b663491 2005-09-06 Chris Toshok <[email protected]>
* WebControl.cs (AddAttributesToRender): always render ClientID.

	* ValidationSummary.cs (Render): same.

	* BaseValidator.cs (RegisterValidatorDeclaration): use ClientID
	here.


svn path=/trunk/mcs/; revision=49587
2005-09-06 22:32:54 +00:00
Chris Toshok 9ac11cfc64 2005-09-06 Chris Toshok <[email protected]>
* ValidationSummary.cs (Render): only do the JS stuff when the
	validators on the page are uplevel.

	* BaseValidator.cs (Render): remove unnecessary comment.


svn path=/trunk/mcs/; revision=49557
2005-09-06 17:44:14 +00:00
Chris Toshok 916c48409b 2005-09-05 Chris Toshok <[email protected]>
* BaseDataBoundControl.cs (DataSourceID): testing reveals this is
	stored in the ViewState.


svn path=/trunk/mcs/; revision=49514
2005-09-05 23:25:10 +00:00
Chris Toshok a98ac632a7 2005-09-02 Chris Toshok <[email protected]>
* Repeater.cs (GetData): change this slightly so the Repeater
	doesn't keep a ref to the return value of GetData.


svn path=/trunk/mcs/; revision=49361
2005-09-02 17:22:17 +00:00
Chris Toshok 5d19184603 2005-09-01 Chris Toshok <[email protected]>
* ListControl.cs (AppendDataBoundItems): implement (2.0)
	(TagKey): same.


svn path=/trunk/mcs/; revision=49305
2005-09-01 23:58:08 +00:00