Commit Graph
1173 Commits
Author SHA1 Message Date
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
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
Chris Toshok 525e9138b7 2005-09-01 Chris Toshok <[email protected]>
* System.Web.UI.WebControls/MonthChangedEventArgs.cs,
	System.Web.UI.WebControls/ValidatedControlConverter.cs,
	System.Web.UI.WebControls/Xml.cs,
	System.Web.UI.WebControls/RegularExpressionValidator.cs,
	System.Web.UI.WebControls/ServerValidateEventArgs.cs,
	System.Web.UI.WebControls/Menu.cs,
	System.Web.UI.WebControls/MailMessageEventArgs.cs,
	System.Web.UI.WebControls/MenuItemStyle.cs,
	System.Web.UI.WebControls/RangeValidator.cs,
	System.Web.UI.WebControls/RepeaterItemEventArgs.cs,
	System.Web.UI.WebControls/MenuItem.cs,
	System.Web.UI.WebControls/RepeaterCommandEventArgs.cs,
	System.Web.UI.WebControls/DataGridSortCommandEventArgs.cs,
	System.Web.UI.WebControls/DataGridCommandEventArgs.cs,
	System.Web.UI.WebControls/DataGridPageChangedEventArgs.cs,
	System.Web.UI.WebControls/XmlBuilder.cs,
	System.Web.UI.WebControls/ImageButton.cs: someone stop me.  more
	corcompare work.


svn path=/trunk/mcs/; revision=49304
2005-09-01 23:19:42 +00:00
Chris Toshok dc85d267f5 2005-09-01 Chris Toshok <[email protected]>
* System.Web.UI.WebControls/Button.cs,
	System.Web.UI.WebControls/ButtonField.cs,
	System.Web.UI.WebControls/DataControlField.cs,
	System.Web.UI.WebControls/BaseCompareValidator.cs,
	System.Web.UI.WebControls/AutoGeneratedField.cs,
	System.Web.UI.WebControls/CustomValidator.cs,
	System.Web.UI.WebControls/Content.cs,
	System.Web.UI.WebControls/BoundField.cs,
	System.Web.UI.WebControls/AdRotator.cs,
	System.Web.UI.WebControls/ButtonColumn.cs,
	System.Web.UI.WebControls/CompareValidator.cs,
	System.Web.UI.WebControls/AdCreatedEventArgs.cs: More corcompare
	work.  Stub things out, and add attributes.


svn path=/trunk/mcs/; revision=49303
2005-09-01 22:41:03 +00:00
Chris Toshok 545c9d318f 2005-09-01 Chris Toshok <[email protected]>
* Button.cs, ButtonField.cs, FontInfo.cs, Style.cs, Xml.cs,
	CommandField.cs, HyperLinkColumn.cs, Table.cs,
	RegularExpressionValidator.cs, DataGridPagerStyle.cs, Label.cs,
	CheckBox.cs, RadioButton.cs, TableStyle.cs, ListControl.cs,
	Image.cs, BaseCompareValidator.cs, BaseDataList.cs, DataList.cs,
	TemplateColumn.cs, RangeValidator.cs, ImageField.cs,
	BaseValidator.cs, CustomValidator.cs, TextBox.cs,
	ButtonFieldBase.cs, BoundField.cs, CheckBoxList.cs,
	RadioButtonList.cs, RequiredFieldValidator.cs, AdRotator.cs,
	Repeater.cs, DropDownList.cs, CheckBoxField.cs, HyperLink.cs,
	XmlDataSource.cs, Panel.cs, DataGrid.cs, ButtonColumn.cs,
	CompareValidator.cs, Calendar.cs, ListBox.cs, TableCell.cs,
	WebControl.cs, Literal.cs, ValidationSummary.cs, ImageButton.cs,
	TableRow.cs, LinkButton.cs, DataGridColumn.cs, BoundColumn.cs,
	TableItemStyle.cs: Add some WebCategory and WebSysDescription
	attributes.


svn path=/trunk/mcs/; revision=49301
2005-09-01 21:25:48 +00:00
Chris Toshok 621ac485c3 2005-09-01 Chris Toshok <[email protected]>
* AccessDataSource.cs: corcompare work.

	* SqlDataSource.cs: same.


svn path=/trunk/mcs/; revision=49283
2005-09-01 18:21:51 +00:00
Miguel de Icaza 9280957789 2005-09-01 Miguel de Icaza <[email protected]>
* Various places: make sure that the DefaultValue matches the
	type.  Thanks to Michael for pointing this out.

	In future audits, you might want to use the following awk command:

	awk '/DefaultValue/ { v=$0; looking = 1; } /public/ && looking &&
	!/string/ && !/ int / && !/ bool / { print FILENAME; print v;
	print $0; looking = 0; } /public/ && looking { looking = 0; } '
	*.cs

	The above skips bools, strings and ints as those were fine as we
	set them.  The bug was on the other ones.



svn path=/trunk/mcs/; revision=49274
2005-09-01 14:55:44 +00:00
Gonzalo Paniagua Javier 24a9eb0e15 2005-08-31 Gonzalo Paniagua Javier <[email protected]>
* Repeater.cs: fix the build.


svn path=/trunk/mcs/; revision=49238
2005-09-01 01:38:22 +00:00
Chris Toshok 113a081ad4 2005-08-31 Chris Toshok <[email protected]>
* Repeater.cs: lots of 2.0 work, much of it c&p'ed from
	{Base}DataList, and also from debug spew garnered from some
	Repeater subclass tests on MS.
	(CreateControlHierarchy): in 2.0 if IsBonudUsingDataSourceID get
	the IEnumerable by calling GetData().
	(DataBind): reset RequiresDataBinding to false (2.0).
	(DataMember): copy the set implementation from DataList, and add
	2.0 code to call OnDataPropertyChanged if we're !Initialiezd.
	(DataSource): more c&p.
	(DataSourceID); implement (2.0)
	(Initialized): implement (2.0)
	(IsBoundUsingDataSource): implement (2.0)
	(RequiresDataBinding): implement (2.0)
	(SelectArguments): implement (2.0)
	(CreateDataSourceSelectArguments): implement (2.0)
	(EnsureDataBound): implement (2.0)
	(GetData): implement.
	(OnDataPropertyChanged): remove the NIE, but leave the MonoTODO
	(2.0)
	(OnDataSourceViewChanged): set RequiresDataBinding to true, but
	leave the MonoTODO. (2.0)
	(OnInit): call base.OnInit instead of throwing NIE, but leave the
	MonoTODO (2.0)
	(OnLoad): implement.
	(OnPreRender): implement.
	(ConnectToDataSource): new method - look for the right control.


svn path=/trunk/mcs/; revision=49234
2005-08-31 23:40:32 +00:00
Chris Toshok 7dfa9b7650 2005-08-31 Chris Toshok <[email protected]>
* XmlDataSourceView.cs: fix the scope of our select.  Don't use
	call SelectNodes on the XmlDocument, not on
	XmlDocument.DocumentElement.


svn path=/trunk/mcs/; revision=49231
2005-08-31 23:20:56 +00:00
Chris Toshok 20a18e8733 2005-08-31 Chris Toshok <[email protected]>
* XmlDataSourceView.cs (.ctor): remove the nodelist parameter.
	(DoXPathSelect): put the xpath selection stuff here.
	(ExecuteSelect): call DoXPathSelect if we need to (if nodes ==
	null).

	* XmlDataSource.cs (IDataSource.GetView): don't do the XPath
	select here, the view does it.


svn path=/trunk/mcs/; revision=49227
2005-08-31 22:58:49 +00:00
Jackson Harper a056a76b89 * DataList.cs: Remove some debugging code that was starting to bug
me (tee hee).


svn path=/trunk/mcs/; revision=49226
2005-08-31 22:48:12 +00:00
Chris Toshok 01fb7cc119 2005-08-31 Chris Toshok <[email protected]>
* XmlDataSourceNodeDescriptor.cs: implement IXPathNavigable, and
	create our Navigator by calling node.CreateNavigator().


svn path=/trunk/mcs/; revision=49225
2005-08-31 22:28:47 +00:00
Chris Toshok 577c97a2fe 2005-08-31 Chris Toshok <[email protected]>
* XmlDataSource.cs (GetXmlDataDocument): rename this to
	GetXmlDocument, and change the return value from XmlDataDocument
	to XmlDocument.
	(LoadXmlDataDocument): similar change.
	(Save): xmlDataDocument -> xmlDocument.
	(CanBeSaved): there's no ReadOnly attribute.
	(LoadViewState, SaveViewState, TrackViewState): nuke.
	(GetHierarchicalView): xmlDataDocument -> xmlDocument.
	(CacheDuration): stub out with NIE.
	(CacheExpirationPolocy): same.
	(CacheKeyDependency): same.
	(EnableCaching): same.
	(ReadOnly): nuke.
	(Data, DataFile): xmlDataDocument -> xmlDocument.
	(Schema, SchemaFile): nuke.
	(Transform, TransformFile): xmlDataDocument -> xmlDocument.


svn path=/trunk/mcs/; revision=49218
2005-08-31 21:21:09 +00:00
Lluis Sanchez ada5b7053c 2005-08-30 Lluis Sanchez Gual <[email protected]>
* SubMenuStyle.cs, MenuItemStyle.cs, TreeNodeStyle.cs:
	  Don't use the obsolete IsSet method.
	* Menu.cs: Implement IPostBackEventHandler.RaisePostBackEvent.
	* CheckBox.cs: Implement some 2.0 methods.
	* GridView.cs: Removed some "throw new NotImplementedException"


svn path=/trunk/mcs/; revision=49115
2005-08-30 11:50:32 +00:00
Chris Toshok f306634b08 2005-08-29 Chris Toshok <[email protected]>
* TreeView.cs: Use the StateBag accessors Ben added, and implement
	SkipLinkText and Visible.


svn path=/trunk/mcs/; revision=49091
2005-08-29 20:26:29 +00:00
Chris Toshok c4411f0f84 2005-08-29 Chris Toshok <[email protected]>
* TreeView.cs: fix typo in an attribute.


svn path=/trunk/mcs/; revision=49083
2005-08-29 18:58:58 +00:00
Jackson Harper 47ec50c25c * PagedDataSource.cs: If it's not a list or collection we don't
use a bounded enumerator.


svn path=/trunk/mcs/; revision=49079
2005-08-29 18:26:43 +00:00
Chris Toshok cf0df4471c 2005-08-29 Chris Toshok <[email protected]>
* LinkButton.cs: fix some 2.0 Page/ClientScript obsolete warnings.

	* CheckBox.cs: same.
	
	* BaseValidator.cs: same.
	
	* DropDownList.cs: same.
	
	* ValidationSummary.cs: same.


svn path=/trunk/mcs/; revision=49071
2005-08-29 17:50:13 +00:00
Chris Toshok fc7a165972 2005-08-28 Chris Toshok <[email protected]>
* XmlHierarchyData.cs: fix IHierarchyData.GetParent.


svn path=/trunk/mcs/; revision=49007
2005-08-28 06:21:23 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00
Michael Hutchinson 7ea013c4aa 2005-08-22 Michael Hutchinson <[email protected]>
* WebControl.cs: Correct type for some default values
	* UnitConverter.cs: Fix potential infinite loop


svn path=/trunk/mcs/; revision=48669
2005-08-22 16:20:57 +00:00
Kornél Pál 83946b2158 Replaced assembly references with constants in Consts.cs.
svn path=/trunk/mcs/; revision=47823
2005-07-28 23:46:29 +00:00
Eyal Alalouf 8e0a4a27fc Implement accessibility features for NET_1_1 configuration.
svn path=/trunk/mcs/; revision=47711
2005-07-26 16:30:17 +00:00
Eyal Alalouf 64e4a0fc02 TARGET_J2EE compilation & integration fixes.
svn path=/trunk/mcs/; revision=47418
2005-07-19 16:53:47 +00:00
Lluis Sanchez 0b6940fbf2 2005-06-27 Lluis Sanchez Gual <[email protected]>
* DataControlField.cs: Ignore the ShowHeader property when
	building the control's content. It is the resposability of
	the field container to decide if the header should be shown
	or not.


svn path=/trunk/mcs/; revision=46540
2005-06-27 08:57:27 +00:00
Lluis Sanchez 513b87dc26 2005-06-10 Lluis Sanchez Gual <[email protected]>
* AdType.cs:
	* ImageFieldMode.cs:
	* DynamicImageParameterMode.cs:
	* TableViewMode.cs: Removed.
	
	* SortDirection.cs:
	* AdRotator.cs:
	* TableRowSection.cs:
	* AutoCompleteType.cs:
	* DayNameFormat.cs: Track changes in 2.0 api.
	
	* StringArrayConverter.cs: This class is 2.0 only.


svn path=/trunk/mcs/; revision=45761
2005-06-10 15:29:36 +00:00
Lluis Sanchez af7e54758c 2005-06-06 Lluis Sanchez Gual <[email protected]>
* GridView.cs:
	* FormView.cs:
	* DetailsView.cs: Bind the control after creating all child
	 controls.
	* DataBoundControl.cs: Call OnDataBinding and OnDataBound in
	the correct methods.
	* BaseDataBoundControl.cs: Don't call DataBind nor OnDataBound
	in this class. This is done in DataBoundControl. All this fixes
	bug #75076.


svn path=/trunk/mcs/; revision=45481
2005-06-06 11:29:51 +00:00
Gonzalo Paniagua Javier a39f196b0d 2005-05-29 Gonzalo Paniagua Javier <[email protected]>
* ListItemCollection.cs: Patch from Curtis ([email protected]) that fixes
	FindByText. Closes bug #74205.


svn path=/trunk/mcs/; revision=45168
2005-05-29 23:23:01 +00:00
Gonzalo Paniagua Javier 803a0337dd 2005-05-26 Gonzalo Paniagua Javier <[email protected]>
* PagedDataSource.cs: patch by Suresh Kumar that makes PageCount return
	1 when there's a datasource and 0 pages. Closes bug #73864.


svn path=/trunk/mcs/; revision=45086
2005-05-26 23:06:52 +00:00
Lluis Sanchez 3b4fdcc1c6 2005-05-26 Lluis Sanchez Gual <[email protected]>
* DataListItem.cs:
	* GridViewRow.cs:
	* DataGridItem.cs:
	* RepeaterItem.cs:
	* FormView.cs:
	* MenuItemTemplateContainer.cs:
	* DetailsView.cs: Track changes in the IDataItemContainer interface.
	
	* CommandField.cs: Added CausesValidation property. Set that
	property value to all buttons of the field.
	
	* SqlDataSourceView.cs:
	* CollectionDataSource.cs:
	* XmlDataSourceView.cs: Properly initialize the base class.
	
	* SiteMapDataSource.cs:
	* SiteMapHierarchicalDataSourceView.cs:
	* SiteMapNodeItem.cs:
	* SiteMapDataSourceView.cs:
	* SiteMapPath.cs: Mostly implemented.
	
	* HierarchicalDataBoundControl.cs: Always bind the control when the
	page is loaded for the first time.
	
	* TreeView.cs: Properly bind the control when loaded from a callback.


svn path=/trunk/mcs/; revision=45062
2005-05-26 16:17:00 +00:00
Ben Maurer ed8ddeaaf6 2005-05-21 Ben Maurer <[email protected]>
* BaseDataList.cs: Caption is in 1.1 too, though not
	documented. Gonz owes me [more] ice cream. Yummmmm.

svn path=/trunk/mcs/; revision=44865
2005-05-21 05:44:57 +00:00
Gonzalo Paniagua Javier 42bb4033f6 2005-05-20 Gonzalo Paniagua Javier <[email protected]>
* BaseDataList.cs: implemented 2.0 Caption property.


svn path=/trunk/mcs/; revision=44860
2005-05-20 22:05:39 +00:00
Lluis Sanchez 46dbfec58d 2005-05-18 Lluis Sanchez Gual <[email protected]>
* TreeView.cs: Always render the startup script. This fixes
	bug #74949. 


svn path=/trunk/mcs/; revision=44690
2005-05-18 16:27:47 +00:00
Lluis Sanchez 19054caffc 2005-05-13 Lluis Sanchez Gual <[email protected]>
* WizardStepBase.cs:
	* WizardStep.cs: Added missing attributes.
	* Wizard.cs: Implemented missing methods and properties. It can now
	be considered feature complete.


svn path=/trunk/mcs/; revision=44499
2005-05-13 13:53:20 +00:00
Gonzalo Paniagua Javier 08e72ade6c 2005-05-10 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: cleanup in AutoCreateColumns. Don't throw at the end of
	the method if the data source was en empty IEnumerator. Fixes
	bug #74804.


svn path=/trunk/mcs/; revision=44355
2005-05-10 21:21:53 +00:00
Lluis Sanchez fb0ff612f6 2005-05-06 Lluis Sanchez Gual <[email protected]>
* TreeNode.cs:
	* TreeView.cs:
	* Menu.cs: Implemented some new properties from beta 2.
	
	* DataControlButton.cs: Render the ControlStyle if it
	is not empty.
	
	* UnitConverter.cs:
	* FontUnitConverter.cs: Improved the conversion to InstanceDescriptor.
	It will now generate an object creation, instead of a Parse call. 
	
	* GridViewCommandEventArgs.cs: Added missing property.
	* SubMenuStyleCollection.cs: This class is not sealed.
	* MultiView.cs: Set Visible=false to all views that are not
	shown. This ensures that it's view state is saved. 
	
	* BaseDataBoundControl.cs:
	* GridViewDeletedEventArgs.cs: Minor api fixes.
	
	* FormViewDeleteEventArgs.cs:
	* DetailsViewDeletedEventArgs.cs:
	* ListControl.cs: Fix warnings.
	
	* CircleHotSpot.cs
	* HotSpot.cs
	* HotSpotCollection.cs
	* ImageMap.cs
	* PolygonHotSpot.cs
	* RectangleHotSpot.cs
	* WizardStepCollection.cs : Implemented.
	
	* WizardStep.cs
	* WizardStepBase.cs
	* Wizard.cs: Initial implementation.


svn path=/trunk/mcs/; revision=44148
2005-05-06 16:41:50 +00:00
Lluis Sanchez 494e5c582e 2005-05-04 Lluis Sanchez Gual <[email protected]>
* DataControlField.cs:
	* CommandField.cs: 
	* GridView.cs:
	* FormView.cs:
	* DataControlCommands.cs:
	* DetailsView.cs: Use constants to identify commands.

	* SubMenuStyle.cs: Use Unit instead of int for padding.
	* SubMenuStyleCollection.cs: Implemented.
	
	* DataList.cs:
	* Menu.cs: Added some missing methods and properties.
	
	* Literal.cs:
	* DataGridPagerStyle.cs: Fixed default value attributes.
	* ListControl.cs: Implemented IEditableTextControl interface.
	
	* MenuItemBinding.cs: Added Selectable property.
	* CustomValidator.cs: removed interface.
	
	* MenuItem.cs: Added support for custom binding. 
	* DropDownList.cs: Moved text properties to base class.


svn path=/trunk/mcs/; revision=44009
2005-05-04 08:53:30 +00:00