Commit Graph
656 Commits
Author SHA1 Message Date
Konstantin Triger 9c61d86aa0 ensure rebinding when FormView.PageIndex is called
svn path=/trunk/mcs/; revision=59688
2006-04-20 09:15:05 +00:00
Konstantin Triger bfd8d4d62e MenuItem.cs: bind to NavigateUrl; CompositeDataBoundControl.cs: ensures data is bound; Menu.cs: fixed binding
svn path=/trunk/mcs/; revision=59687
2006-04-20 09:01:57 +00:00
Lluis Sanchez 8033c6a610 2006-04-11 Lluis Sanchez <[email protected]>
* TreeNodeBinding.cs: Added HasPropertyValue property
	  to check if some properties have a value in the
	  state bag.
	* TreeNode.cs: Lazily get the dataPath. Instead of getting
	  bound properties when they are requested, get all of
	  them when the node is bound and store their values in
	  the state bag. In this way it won't be necessary to
	  query every time the datasource to get the values.
	* XmlHierarchyData.cs: Implemented IHierarchyData.Path.
	* TreeView.cs: Call base in OnInit(). Bind nodes after
	  adding them to the list, to properly keep track of
	  changes. Don't databind in postbacks.


svn path=/trunk/mcs/; revision=59366
2006-04-11 16:28:52 +00:00
Chris Toshok 8fc5d1932d 2006-04-11 Chris Toshok <[email protected]>
* Login.cs (OnLoggingIn): use Events[loggingInEvent].


svn path=/trunk/mcs/; revision=59360
2006-04-11 14:37:01 +00:00
Konstantin Triger 351934c69f enable DataList binding using DataSourceID
svn path=/trunk/mcs/; revision=59348
2006-04-11 08:47:30 +00:00
Konstantin Triger 39a554ee31 Login.cs: Added LayoutTemplate property support. LoginView.cs: Added LoggedInTemplate, AnonymousTemplate support, DataBind - correctly bind child controls, Implemented OnViewChanged, OnViewChanging, Render, Save/LoadControlState.
svn path=/trunk/mcs/; revision=59108
2006-04-06 09:55:33 +00:00
Robert Jordan 6a4d903465 2006-03-29 Robert Jordan <[email protected]>
* DataGrid.cs: if custom paging is enabled the persisted item count
	must be the count of the rendered items, otherwise paging from the
	last to a previous page won't work correctly. Fixes bug #77556.
 

svn path=/trunk/mcs/; revision=58763
2006-03-29 21:44:04 +00:00
Vladimir Krasnov bbe7ffab1e * RepeatInfo.cs: fixed RenderBeginTag to set enabled value of table when rendering disabled list control
svn path=/trunk/mcs/; revision=58691
2006-03-29 08:55:45 +00:00
Gonzalo Paniagua Javier 26b5517077 2006-03-28 Gonzalo Paniagua Javier <[email protected]>
* Panel.cs: render the image url inside 'url()'. Fixes bug #77811.


svn path=/trunk/mcs/; revision=58658
2006-03-28 16:40:46 +00:00
Alexandre Gomes 375e78a210 Implemented FontInfo.ShouldSerializeNames and its Tests.
svn path=/trunk/mcs/; revision=58638
2006-03-28 04:41:43 +00:00
Vladimir Krasnov cb13a63be9 * DataGrid.cs, DataList.cs, RepeatInfo.cs: added accessablity features
svn path=/trunk/mcs/; revision=58348
2006-03-23 10:00:18 +00:00
Vladimir Krasnov 700e221515 * DataGrid.cs: fixed CreateControlHierarchy, added CurrentPageIndex validation
in PrepareControlHierarchy fixed style applying to AlternatingItem

svn path=/trunk/mcs/; revision=58346
2006-03-23 09:54:03 +00:00
Vladimir Krasnov faeb69cda6 * DataList.cs: fixed RepeatColumns property, added value validation
in PrepareControlHierarchy method fixed style applying for AlternatingItem, EditItem and Separator item
fixed RenderContents method, if no items exist, no nned to render emty table strructure.

svn path=/trunk/mcs/; revision=58295
2006-03-22 12:50:17 +00:00
Gonzalo Paniagua Javier b86e806cea 2006-03-15 Gonzalo Paniagua Javier <[email protected]>
* CompareValidator.cs: when searching for the control to compare, use
	NamingContainer instead of Page. Fixes bug #77793.


svn path=/trunk/mcs/; revision=58044
2006-03-15 21:25:33 +00:00
Chris Toshok 26c91045e8 * SiteMapPath.cs (InitializeItem): in the Current and Root node
cases, apply the NodeTemplate if it exists and there isn't a
	CurrentNodeTemplate or RootNodeTemplate, respectively.

2006-03-15  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=58037
2006-03-15 19:54:46 +00:00
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