* 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
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
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-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-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-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-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
* 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
* 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
* 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
correct the "disabled" attribute in CheckBoxList
* CheckBoxList.cs: fixed RenderItem, to correct the "disabled" attribute in CheckBoxList
svn path=/trunk/mcs/; revision=57071
* 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
* 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