Commit Graph
1341 Commits
Author SHA1 Message Date
Chris Toshok c4b35a5494 2006-03-15 Chris Toshok <[email protected]>
* SiteMapDataSourceView.cs (OnDataSourceViewChanged): override.

	* SiteMapDataSource.cs (StartingNodeOffset): new property.
	(GetStartNode): add code to handle StartNodeOffset < 0.

	* CompositeControl.cs
	(ICompositeControlDesignerAccessor.RecreateChildControls): just
	call the non-iface method.

	* DataBoundControl.cs (GetDataSource): this is likely wrong, but
	traverse up the naming container tree looking for our datasource
	if we're bound using a DataSourceID.  This fixes things in the
	sitemap1 test, which uses a mixture of templates and
	ContentPlaceholders with the sitemapdatasource and sitemappath at
	different levels in the naming container tree (let along the
	itemnode template.)

	* SiteMapPath.cs (DataBind): implement this by chaining up to
	base.DataBind, then by looping over our children, emitting
	OnItemDataBound for each SiteMapNodeItem.
	(AddAttributesToRender): remove.
	(CreateChildControls): call DataBind as the final step here..  I
	have, of course, no idea if this is right.
	(CreateControlHierarchy): don't databind our children here, as
	they need to be in the Controls collection before we do.
	(RenderContents): render our accessibility/screenreader stuff
	here, if SkipLinkText != "".


svn path=/trunk/mcs/; revision=58030
2006-03-15 17:48:20 +00:00
Vladimir Krasnov b209b9a57f * DataGridPagerStyle.cs: fixed PrevPageText property
svn path=/trunk/mcs/; revision=58018
2006-03-15 15:35:07 +00:00
Chris Toshok 30379e2da6 2006-03-13 Chris Toshok <[email protected]>
* BaseCompareValidator.cs (Convert): make the
	ValidationDataType.String case a bit more compact.


svn path=/trunk/mcs/; revision=57928
2006-03-13 23:49:59 +00:00
Gonzalo Paniagua Javier 5256f363c5 2006-03-13 Gonzalo Paniagua Javier <[email protected]>
* ListBox.cs:
	(RenderContents): don't call base.RenderContents. Fixes bug #77740.
	Patch by Hubert Fongarnand.


svn path=/trunk/mcs/; revision=57905
2006-03-13 20:56:16 +00:00
Vladimir Krasnov daa90bb158 * FontInfo.cs: fixed CopyFrom, this method should not reset the received fontinfo if it is the same instance
fixed ToString, corrected output where only font size specified

svn path=/trunk/mcs/; revision=57894
2006-03-13 17:33:02 +00:00
Vladimir Krasnov 51887b0475 * Style.cs: fixed WriteStyleAttributes to set border style to solid, if it not set but the border has width
fixes in CopyFrom, MergeWith correct unit compare when it has zero value

svn path=/trunk/mcs/; revision=57889
2006-03-13 09:26:51 +00:00
Vladimir Krasnov 5c2bd05b30 * DataGrid.cs: in AddColumnsFromSource method fixed columns from properties of custom class
fixed InitializeNumericPager, pager numbers should be a Label control
fixed CreateControlHierarchy, corrected dataset index of items if paging is enabled

svn path=/trunk/mcs/; revision=57872
2006-03-12 17:01:29 +00:00
Vladimir Krasnov 66ae61f66e * DataList.cs: fixed DoItemInLoop method that fixes itemIndex of separator item.
fixed CreateControlStyle to set correct cellspacing of table style
fixed InitializeItem to correct applying template to selected and edit items.

svn path=/trunk/mcs/; revision=57731
2006-03-09 17:09:45 +00:00
Chris Toshok 86dbcb76b4 2006-03-08 Chris Toshok <[email protected]>
* SiteMapNodeType.cs: nuke.

	* BorderStyle.cs, ButtonColumnType.cs, CalendarSelectionMode.cs,
	DayNameFormat.cs, ListItemType.cs, ListSelectionMode.cs,
	NextPrevFormat.cs, PagerMode.cs, PagerPosition.cs,
	RepeatDirection.cs, RepeatLayout.cs, TableRowSection.cs,
	TextAlign.cs, TextBoxMode.cs, TitleFormat.cs,
	ValidationCompareOperator.cs, ValidationDataType.cs,
	ValidationSummaryDisplayMode.cs, ValidatorDisplay.cs: remove
	[Serializable] in 2.0.

	* DayNameFormat.cs: add "Shortest".


svn path=/trunk/mcs/; revision=57693
2006-03-08 16:12:10 +00:00
Vladimir Krasnov 3318021525 * LinkButton.cs: fixed AddAttributesToRender, removed not needed language attribute
svn path=/trunk/mcs/; revision=57687
2006-03-08 09:42:38 +00:00
Vladimir Krasnov 4ae28b0a54 * TextBox.cs: fixed missing value validations,
fixed rendering of empty value attribute

svn path=/trunk/mcs/; revision=57686
2006-03-08 09:27:04 +00:00
Chris Toshok ca85ad3c1f In System.Web.UI:
2006-03-07  Chris Toshok  <[email protected]>

	* Page.cs (InitializeStyleSheet): load the style sheet theme using
	ThemeDirectoryCompiler.
	(InitializeTheme): load the page's theme using
	ThemeDirectoryCompiler.
	(InternalProcessRequest): call InitializeTheme after OnPreInit.
	(FrameworkInitialize): call InitializeStyleSheet.
	(PageTheme,StyleSheetPageTheme): new properties to get the
	respective themes.

	* Control.cs (ApplyStyleSheetSkin): new method.  Calls ApplySkin
	on the ControlSkin (if there is one) for this control in the
	page's StyleSheetSkin.
	(ApplyThemeRecursively): applies the page's theme recursively to
	the control hierarchy.  Must be done this way because the control
	tree is already present when we apply the theme (it has to be,
	since theme's override settings).

	* PageTheme.cs (GetControlSkin): add internal call to do the
	lookup for us.

	* PageThemeFileParser.cs: the parser object that represents each
	individual skin file.

	* PageThemeParser.cs: the parser object that represents the entire
	theme directory.

	* PageThemeBuilder.cs: this class generates the right exception on
	the right event, but it's not hooked up yet.

In System.Web.UI.WebControls:
2006-03-07  Chris Toshok  <[email protected]>

	* WebControl.cs (EnableTheming): leave the MonoTODO, but implement
	by chaining up to base.EnableTheming.


svn path=/trunk/mcs/; revision=57676
2006-03-07 22:39:43 +00:00
Vladimir Krasnov 0e70eec205 * DataList.cs: fixed CreateControlHierarchy, fixes 77693
svn path=/trunk/mcs/; revision=57650
2006-03-07 08:30:02 +00:00
Vladimir Krasnov 2beb1b975f * RadioButton.cs: added ValueAttribute property to store the button value when in list
* RadioButtonList.cs: fixed tab index when rendering.

svn path=/trunk/mcs/; revision=57605
2006-03-06 08:51:26 +00:00
Chris Toshok 9cd26e2c03 In System.Web.UI:
2006-03-02  Chris Toshok  <[email protected]>

	* Control.cs (ApplyStyleSheetTheme): remove the exception, and add
	a MonoTODO.

	* Page.cs (Theme): implement setter/getter.
	(StyleSheetTheme): same.
	
	* PageParser.cs (ProcessMainAttributes): parse the Theme and
	StyleSheetTheme attributes.

In System.Web.UI.WebControls:
2006-03-02  Chris Toshok  <[email protected]>

	* WebControl.cs (SkinID): implement setter/getter, and have them
	just chain up to base.SkinID.

In System.Web.Compilation:
2006-03-02  Chris Toshok  <[email protected]>

	* TemplateControlCompiler.cs (InitMethod): emit an assignment for
	SkinID just after the creation of our object, and right after that
	call "_ctrl.ApplyStyleSheetSkin (page)".
	(CreateAssignStatementsFromAttributes): split out the majority of
	this code to CreateAssignStatementFromAttribute, and change this
	method to simply a loop over the attribute keys.  In the 2.0 case,
	skip the SkinID property, since that's handled explicitly in
	InitMethod.

	* PageCompiler.cs (AddStatementsToInitMethod): emit assignments
	for Theme and StyleSheetTheme.


svn path=/trunk/mcs/; revision=57516
2006-03-02 19:30:08 +00:00
Chris Toshok c578941eaf In System.Web.UI:
2006-02-27  Chris Toshok  <[email protected]>

	* DataSourceView.cs: Name isn't virtual.

	* DataSourceControl.cs: beat this class over the head with the
	corcompare stick.

	* DataSourceControlBuilder.cs: new stubbed control builder for
	DataSourceControl.

In System.Web.UI.WebControls:
2006-02-27  Chris Toshok  <[email protected]>

	* SqlDataSource.cs: track change to DataSourceControl's protected
	methods.

	* AccessDataSource.cs: same.


svn path=/trunk/mcs/; revision=57342
2006-02-27 18:25:36 +00:00
Vladimir Krasnov 682ef77c88 * ListControl.cs: fixed SelectedIndex property, fixed selection reset on incorrect value
svn path=/trunk/mcs/; revision=57335
2006-02-27 17:35:36 +00:00
Vladimir Krasnov a34e681bc3 TableStyle.cs: fixed AddAttributesToRender function, style
BorderCollapse:Collapse was added if table's CellSpacing is zero

svn path=/trunk/mcs/; revision=57333
2006-02-27 17:19:15 +00:00
Chris Toshok 553bc8d055 In System.Web.Compilation:
2006-02-23  Chris Toshok  <[email protected]>

	* TemplateControlCompiler.cs (AddContentTemplateInvocation): track
	change from ContentControlBuilderInternal to
	ContentBuilderInternal.
	(AddCodeRender): same.

In System.Web.UI.WebControls:
	* CheckBox.cs, ContentControlBuilderInternal.cs, Content.cs,
	ContentPlaceHolderBuilder.cs, ContentPlaceHolder.cs,
	DataControlFieldHeaderCell.cs, DataGridColumn.cs,
	HierarchicalDataBoundControl.cs, HyperLinkField.cs,
	ImageButton.cs, ImageField.cs, Literal.cs,
	ObjectDataSourceView.cs, TextBox.cs: more corcompare work.


svn path=/trunk/mcs/; revision=57221
2006-02-23 23:04:09 +00:00
Chris Toshok 5cb4398967 In System.Web.UI:
2006-02-23  Chris Toshok  <[email protected]>

	* Page.cs (ProcessCallbackData): track change to
	ICallbackEventHandler iface.

	* ICallbackEventHandler.cs: enable the proper members of this
	interface.

	* DataSourceSelectArguments.cs: reformat getter/setters.
	
In System.Web.UI.WebControls:
2006-02-23  Chris Toshok  <[email protected]>

	* BaseCompareValidator.cs, BaseValidator.cs, Button.cs,
	DataControlField.cs, DetailsView.cs, FormView.cs, GridView.cs,
	HotSpot.cs, LinkButton.cs, Login.cs, SiteMapDataSource.cs,
	SqlDataSourceCommandType.cs, TableSectionStyle.cs,
	TemplateField.cs, TreeNodeCollection.cs, TreeNode.cs, TreeView.cs,
	ValidationSummary.cs, WizardStepBase.cs: fix tons of corcompare
	errors.  most were caused by a property/method being virtual when
	it shouldn't be, or vice versa.


svn path=/trunk/mcs/; revision=57203
2006-02-23 15:21:28 +00:00
Chris Toshok ddf9be5a96 2006-02-22 Chris Toshok <[email protected]>
* ObjectDataSource.cs: corcompare work.


svn path=/trunk/mcs/; revision=57192
2006-02-23 02:54:19 +00:00
Chris Toshok 885cbe5bda 2006-02-22 Chris Toshok <[email protected]>
* ParameterCollection.cs: add an EditorAttribute to the class.

	* Parameter.cs: cleanup, fix the Value property, and implement the
	Size property.

	* SqlDataSourceView.cs: clean things up a bit, and add handling
	for parameters.


svn path=/trunk/mcs/; revision=57191
2006-02-23 02:47:50 +00:00
Chris Toshok 148d6798c3 2006-02-22 Chris Toshok <[email protected]>
* SqlDataSourceFilteringEventArgs.cs: formatting.

	* SqlDataSourceSelectingEventArgs.cs: remove ExecutingSelectCount,
	both the property and ctor arg.

	* AccessDataSourceView.cs (ExecuteSelect): use SelectingEventArgs,
	not CommandEventArgs.  Also, cast the return value of
	oleCommand.ExecuteReader.

	* AccessDataSource.cs (.ctor): fix the ctors and remove FIXME
	comments.
	(GetDbProviderFactory): implement naively, and leave a MonoTODO.
	(GetPhysicalDataFilePath): implement, again naively.  this is
	where the NRE is generated when we access ConnectionString in a
	testcase on .net.
	(ConnectionString): dynamically generate this based on our
	DataFile attribute.
	(DataFile): clear the ConnectionString in the setter so we'll
	regenerate it.
	(ProviderName): use base.ProviderName in the getter, not
	this.ProviderName, so we don't recurse infinitely.
	
	* SqlDataSourceView.cs: start reworking this class.

	* SqlDataSource.cs (GetDbProviderFactory): implement this,
	following the MS docs on the matter (if ProviderName is null/"",
	return SqlClientFactory.Instance.)
	(GetDbProviderFactoryInternal): add an internal method for use by
	SqlDataSourceView.
	(TrackViewState): don't invoke View.TrackViewState unless we have
	one.
	(Selecting): change event handler type to match MS.
	(Filtering): add missing event.
	(View): call CreateDataSourceView, don't just create an
	SqlDataSourceView.


svn path=/trunk/mcs/; revision=57169
2006-02-22 19:14:04 +00:00
Chris Toshok d29fddee2a 2006-02-21 Chris Toshok <[email protected]>
* BoundField.cs: ues the ViewState.Get* pattern with default
	instead of the explicit ViewState lookup + null check, and fix the
	scope of InitializeDataCell.


svn path=/trunk/mcs/; revision=57121
2006-02-22 01:37:14 +00:00
Chris Toshok 99bc4f7b8b 2006-02-21 Chris Toshok <[email protected]>
* ButtonField.cs: ues the ViewState.Get* pattern with default
	instead of the explicit ViewState lookup + null check.

	* CommandField.cs: same.

	* CheckBox.cs: same.

	* AutoGeneratedFieldProperties.cs: same.

	* BaseDataList.cs: same.

	* CircleHotSpot.cs: same.

	* BulletedList.cs: same.

	* DataBoundControl.cs: same.

	* CookieParameter.cs: same.

	* ControlParameter.cs: same.

	* CustomValidator.cs: same.

	* ButtonFieldBase.cs: same.

	* CheckBoxField.cs: same, and fix the scope of InitializeDataCell.

	* AutoGeneratedField.cs: fix scope of InitializeDataCell.

	* BaseValidator.cs: same, and clean up the getter/setter formatting.

	* CompareValidator.cs: same.


svn path=/trunk/mcs/; revision=57120
2006-02-22 01:13:12 +00:00
Vladimir Krasnov 7b1eaada95 * ListControl.cs: fixed DataSource property, to throw
ArgumentException on incorrect value

svn path=/trunk/mcs/; revision=57073
2006-02-20 16:29:28 +00:00
Vladimir Krasnov c6f4350fad Image.cs: fixed missing border="0" attribute, when image has style, but border width is not specified.
svn path=/trunk/mcs/; revision=57072
2006-02-20 16:09:20 +00:00
Vladimir Krasnov 754b9d76b8 * CheckBox.cs: fixed InternalAddAttributesToRender, Render to
correct the "disabled" attribute in CheckBoxList
* CheckBoxList.cs: fixed RenderItem, to correct the "disabled" attribute in CheckBoxList

svn path=/trunk/mcs/; revision=57071
2006-02-20 15:45:42 +00:00
Vladimir Krasnov df67f5c2f0 CheckBox.cs: fixed Render function, removed rendering of empty <span> element if ControlStyleCreated but it's empty.
fixed "disabled" attribute, it should be placed into span element

svn path=/trunk/mcs/; revision=57070
2006-02-20 15:01:46 +00:00
Vladimir Krasnov c8e7cf5188 BoundColumn.cs: fixed InitializeCell function, if DataField is null or empty string, the cell should not be bound.
svn path=/trunk/mcs/; revision=57068
2006-02-20 14:43:58 +00:00
Chris Toshok 56e644889c 2006-02-08 Chris Toshok <[email protected]>
* ListControl.cs (OnDataBinding): in 2.0, only clear our items if
	AppendDataBoundItems != false.  Also, split all the databinding
	logic out to DoDataBinding, which we call from here only if
	!NET_2_0.
	(DoDataBinding): new function. actually perform the binding.
	(PerformDataBinding): implement.
	(PerformSelect): chain up to base class.


svn path=/trunk/mcs/; revision=56683
2006-02-08 20:40:47 +00:00
Chris Toshok 7db12fb2e6 2006-02-07 Chris Toshok <[email protected]>
* ContentPlaceHolder.cs: fix ToolboxDataAttribute.

	* Content.cs: use ContentControlBuilderInternal, and add a bunch
	of unused (for now) EventHandler's here.

	* ContentControlBuilderInternal.cs: rename ContentControlBuilder
	to this.


svn path=/trunk/mcs/; revision=56621
2006-02-07 16:49:30 +00:00
Chris Toshok c0a6dfa7d6 indent/format this properly
svn path=/trunk/mcs/; revision=56346
2006-01-31 17:43:26 +00:00
Gonzalo Paniagua Javier fe3850a309 2006-01-24 Gonzalo Paniagua Javier <[email protected]>
* 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
2006-01-24 21:54:40 +00:00
Konstantin Triger c0ff50315a ensure invariant culture
svn path=/trunk/mcs/; revision=55930
2006-01-23 08:32:21 +00:00
Chris Toshok 89e4fb7548 2006-01-22 Chris Toshok <[email protected]>
* 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
2006-01-22 20:58:37 +00:00
Konstantin Triger 5a65f8ba6b Add semicolon after client script if does not exist
svn path=/trunk/mcs/; revision=55898
2006-01-22 17:34:15 +00:00
Konstantin Triger 4ab1350f69 preserve user logic when adding client validation
svn path=/trunk/mcs/; revision=55709
2006-01-18 08:46:06 +00:00
Konstantin Triger 5343d82b47 fixing visibility bahavior
svn path=/trunk/mcs/; revision=55598
2006-01-15 13:23:27 +00:00
Gonzalo Paniagua Javier 83ff57d8ff 2006-01-13 Gonzalo Paniagua Javier <[email protected]>
* RangeValidator.cs: allow empty data from the control. Patch from Marek
	Habersack that fixes bug #77239.


svn path=/trunk/mcs/; revision=55510
2006-01-13 14:55:45 +00:00
Gonzalo Paniagua Javier c2af6f8b34 2006-01-10 Gonzalo Paniagua Javier <[email protected]>
* Calendar.cs: Modified file.


svn path=/trunk/mcs/; revision=55303
2006-01-10 16:30:10 +00:00
Konstantin Triger 145662bd35 TARGET_JVM changes to let the compilation pass with csc 1.1
svn path=/trunk/mcs/; revision=55206
2006-01-08 13:21:51 +00:00
Gonzalo Paniagua Javier 7d8b3bf80f 2005-12-08 Gonzalo Paniagua Javier <[email protected]>
* DropDownList.cs: HtmlEncode the item text. Fixes bug #76949.


svn path=/trunk/mcs/; revision=54128
2005-12-08 21:28:02 +00:00
Chris Toshok 2e6afaeadf 2005-12-07 Chris Toshok <[email protected]>
* 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
2005-12-07 06:31:04 +00:00
Gonzalo Paniagua Javier 4fa0c3c3da 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-12-01 02:02:13 +00:00
Gonzalo Paniagua Javier 3b1a44ffc1 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-12-01 01:37:08 +00:00
Gonzalo Paniagua Javier 3046fa752d 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: clear the control collection on every call to
	CreateControlHierarchy. Fixes bug #76732.


svn path=/trunk/mcs/; revision=53723
2005-11-30 23:35:10 +00:00
Gonzalo Paniagua Javier 6fcdefd63b 2005-11-28 Gonzalo Paniagua Javier <[email protected]>
* ListBox.cs: Rows and SelectionMode are virtual in 1.1


svn path=/trunk/mcs/; revision=53600
2005-11-28 23:03:37 +00:00
Gonzalo Paniagua Javier 6c78824894 2005-11-21 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-11-21 20:45:14 +00:00
Gonzalo Paniagua Javier 82fa8c8b6f 2005-11-18 Gonzalo Paniagua Javier <[email protected]>
* LinkButton.cs: don't output any javascript when the linkbutton is
	disabled. Fixes bug #76713.


svn path=/trunk/mcs/; revision=53246
2005-11-18 20:37:47 +00:00