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
* System.Web.UI/WebHandlerParser.cs:
* System.Web.UI/WebServiceParser.cs:
* System.Web.UI/UserControlParser.cs:
* System.Web.UI/PageParser.cs: added new ctor that uses a TextReader
as input.
* System.Web.UI/TemplateControlParser.cs: new Reader property.
* System.Web.UI/SimpleWebHandlerParser.cs: new Reader property and
ctor.
* System.Web.dll.sources: added new files.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/TemplateControlCompiler.cs: CreateMethods is
now internal.
* System.Web.Compilation/WebServiceBuildProvider.cs:
* System.Web.Compilation/PageBuildProvider.cs:
* System.Web.Compilation/UserControlBuildProvider.cs:
* System.Web.Compilation/WebHandlerBuildProvider.cs: new build
providers.
* System.Web.Compilation/BuildProvider.cs: add assemblies.
* System.Web.Compilation/BaseCompiler.cs: expose the provider and the
compile unit through properties.
svn path=/trunk/mcs/; revision=56878
* System.Web.Configuration_2.0/Compiler.cs:
* System.Web.Configuration_2.0/CompilerCollection.cs: removed
compatibility code.
* System.Web.Configuration_2.0/BuildProviderCollection.cs: add
GetProviderForExtension().
* System.Web.UI/IThemeResolutionService.cs: this is now added to the
sources file, but some other stuff does not compile yet as the
interface changed after the beta.
* System.Web.UI/ObjectConverter.cs: removed extra attribute.
* System.Web.UI/ObjectStateFormatter.cs: add IStateFormatter for 2.0.
* System.Web.UI/ICallbackEventHandler.cs: update the interface, but
commented the 'good' stuff out, since other files need to be fixed
too.
* System.Web.dll.sources: add new files.
* System.Web.Configuration/CompilationConfiguration.cs:
* System.Web.Configuration/CompilationConfigurationHandler.cs: only
compile these for pre-2.0 assemblies.
* System.Web.Hosting/DefaultVirtualPathProvider.cs: add some
comments/TODO.
* System.Web.Hosting/HostingEnvironment.cs: initialize the
default value for VirtualPathProvider.
* System.Web.Compilation/CompilerType.cs: implemented.
* System.Web.Compilation/AssemblyBuilder.cs: implemented most of it.
* System.Web.Compilation/WebServiceCompiler.cs:
* System.Web.Compilation/CachingCompiler.cs: update 2.0 compiler
instance creation code.
* System.Web.Compilation/ClientBuildManager.cs: implemented some of
its methods. Not yet ready.
* System.Web.Compilation/BuildManager.cs: the more interesting methods
are implemented now.
* System.Web.Compilation/BaseCompiler.cs: delete the temporary files
in case of error.
* System.Web.Compilation/BuildProvider.cs: implemented the
Get*Compiler* protected methods.
svn path=/trunk/mcs/; revision=56781
* ControlBuilder.cs: rename flushOutputStatements to
methodStatements to at least reflect that they're in that method.
svn path=/trunk/mcs/; revision=56638
* MasterPage.cs (CreateMasterPage): don't nullref on null
contentTemplateCollection.
* ControlBuilder.cs: add a flushOutputStatements field.
* PageParser.cs (ProcessMainAttributes): handle Title attribute.
(Title): add getter.
* Page.cs (Title): implement getter/setter.
(InternalProcessRequest): after calling ApplyMasterPage, apply the
page's Title directive if there is one.
(AddContentTemplate): make the EditorBrowsable attribute apply to
the method, not the field.
svn path=/trunk/mcs/; revision=56634
* MasterPage.cs: rework this file, adding some static methods
gleaned from MS stack traces, and clear up the propogation of
content templates between nested master pages.
* Control.cs (TemplateControl): implement.
* TemplateControl.cs: re-indent some of the code.
(ReadStringRecource): according to msdn2, these throw
NotSupportedException.
* MasterPageParser.cs (HandleOption): implement. assign our
master page's MasterPageFile from the UserControl property.
* UserControl.cs (InitializeAsUserControlInternal): new method
that allows initialization without a page.
* UserControlParser.cs (ProcessMainAttributes): for 2.0 handle
MasterPageFile attributes, so we can have nested master pages.
(MasterPageFile): add a 2.0 specific property.
* TemplateControlParser.cs: in .net 2.0, our base class is
BaseTemplateParser.
(HandleOptions): be consistent and call base.HandleOptions.
* BaseTemplateParser.cs: new (stubbed) class.
* MasterPageControlBuilder.cs: new file, not filled in (and really
not used either.)
* Page.cs (InternalProcessRequest): call ApplyMasterPage.
(SaveExistingContentTemplates): nuke.
(ReapplyExistingContentTemplate): nuke.
(ApplyMasterPage): if we have a master page, call
MasterPage.ApplyMasterPageRecursive with it and add it to our
controls.
(set_MasterPageFile): remove call to SaveExistingContentTemplates.
(get_Master): call MasterPage.CreateMasterPage.
(AddContentTemplate): keep track of the page's content templates
in a local Hashtable - they aren't our master page's content
templates.
svn path=/trunk/mcs/; revision=56620
* MasterPage.cs (ContentTemplatesInternal): add get/set for the
actual Hashtable.
* Page.cs (SaveExistingContentTemplates): store off the existing
MasterPage content templates so they can be reapplied when setting
MasterPageFile to something else.
(ReapplyExistingContentTemplates): set masterPage's
ContentTemplates to our saved copy.
(set_MasterPageFile): save off the current content templates
before clearing masterPage.
(get_Master): reapply the saved content templates after we create
the new MasterPage.
svn path=/trunk/mcs/; revision=56185
* ClientScriptManager.cs (RegisterClientScriptResource): gah, fix
problem with last commit - unquote "resourceName" so it uses the
parameter instead of the string constant.
svn path=/trunk/mcs/; revision=56063
* SimpleWebHandlerParser.cs: Remove the declaration of
compilationConfig in the CONFIGURATION_2_0 case. it's
unnecessary.
(.ctor): ifdef out the AddAssembliesInBin call in the
CONFIGURATION_2_0 case. need to revisit this.
(CompilationConfig): add a CONFIGURATION_2_0 version.
* BaseParser.cs: Remove the declaration of compilationConfig in
the CONFIGURATION_2_0 case. it's unnecessary.
svn path=/trunk/mcs/; revision=55045
* KeyedList.cs: Fixed for IOrderedDictionary change in 2.0 final.
Now internal.
* KeyedListEnumerator.cs: Now internal.
svn path=/trunk/mcs/; revision=53681
* Page.cs (GetFormatter): CONFIGURATION_2_0 work.
* TemplateParser.cs (..ctor): CONFIGURATION_2_0 work.
(PagesConfig): add a CONFIGURATION_2_0 version that returns a
PagesSection.
* PageParser.cs (ProcessMainAttributes): CONFIGURATION_2_0 work.
* BaseParser.cs (CompilationConfig): add a CONFIGURATION_2_0
version that returns a CompilationSection.
svn path=/trunk/mcs/; revision=53582
* Page.cs: call LoadViewStateRecursive when the Form collection has
not been used by a different page (GetTypeHashCode). This fixes problems
when calling Server.Transfer while preserving Form and QueryString,
as the page we transfer to used the view state stored in the Form, which
contained the serialized data for the page calling Server.Transfer
instead.
svn path=/trunk/mcs/; revision=52677
* TemplateControl.cs:
* PartialCachingControl.cs: if a control is cacheable, LoadControl
returns a PartialCachingControl that holds the VaryBy* and takes care
of partial caching and rendering. Fixes bug #76547.
svn path=/trunk/mcs/; revision=52188
* System.Web.UI/Page.cs: don't cache the 'Validate()' results.
IsValid retests the validators again.
* System.Web.UI.WebControls/BaseDataList.cs: Type.GetTypeCode
was fixed and now does not throw a nullref, so we have to do
it by ourselves here to make the test happy.
* System.Web.UI.WebControls/BaseValidator.cs: render the text of
the error message even if we set IsValid programatically. Don't
use 'valid' directly, as IsValid is virtual.
Fixes bug #76299.
svn path=/trunk/mcs/; revision=51840
* System.Web.UI/DesignerDataBoundLiteralControl.cs: changed autoid api.
* System.Web.UI/DataBoundLiteralControl.cs: changed autoid api.
* System.Web.UI/Control.cs: fixlet for UniqueID and weird test case.
Removed PreventAutoID and only use the property to set that value.
* System.Web.UI/LiteralControl.cs: changed autoid api.
* System.Web.UI.WebControls/Button.cs: implemented 2.0
RaisePostBackEvent in terms of the existing code in 1.1 (or viceversa).
RenderContents() does nothing.
* System.Web.UI.WebControls/DataGrid.cs: changed autoid api.
* System.Web.UI.WebControls/EditCommandColumn.cs: only 'Update' causes
validation.
* System.Web.UI.WebControls/TableCell.cs: changed autoid api.
RenderContents checks the number of controls to decide what to do, not
the value of Text in the viewstate.
* System.Web.UI.WebControls/TableRow.cs: changed autoid api.
* System.Web.UI.WebControls/BoundColumn.cs: SelectedItem was missing
when attaching a DataBind event. When we get an EditItem, we need a
TextBox to be created and this one will be the one that gets the event.
Changed ItemDataBinding to deal with a TextBox too.
All tests pass now in the default profile (2 not run).
svn path=/trunk/mcs/; revision=51019
* 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
* DataBindingCollection.cs: Using an hashtable is a nice trick but
we need to copy values (not the DictionaryEntry) in CopyTo.
* Page.cs: IsValid throws an exception if the page hasn't be
validated. VerifyRenderingInServerForm doesn't throw an exception
during unit testing (without a context?) but does in normal ops.
svn path=/trunk/mcs/; revision=50651
* LosFormatter.cs: the exceptions thrown have a 500 httpCode. Really
save the allocation of new MemoryStreams when possible. Thanks to
Sebastien again.
svn path=/trunk/mcs/; revision=50648